Allow wrapping field labels in a heading tag

Created on 28 April 2022, over 2 years ago
Updated 15 September 2023, over 1 year ago

Problem/Motivation

Use of heading tags improves usability for site visitors using screen readers, as they can request a list of headings. It may be appropriate for some field labels to be rendered as a heading in order to place that field label in the heading list.

Please add a field to /admin/structure/types/manage/[content type]/display to allow overriding div with any one of h2 through h6.

Steps to reproduce

1. Go to /admin/structure/types/manage/page/display

Expected result: Can choose whether to wrap a field label in div, h2, h3, h4, h5, or h6
Actual result: No option as to how a field label would be wrapped

Proposed resolution

Add column for wrap tag.

Remaining tasks

User interface changes

Add column for wrap tag.

API changes

Data model changes

Add field for wrap tang.

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
FieldΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States charles belov San Francisco, CA, US

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024