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
| Comment | File | Size | Author |
|---|
Issue fork drupal-3277785
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
joaopauloc.dev commentedComment #6
mgiffordhttps://www.w3.org/WAI/WCAG21/Understanding/headings-and-labels.html
Comment #8
joaopauloc.dev commentedComment #9
mgiffordI think this is a bug and that there is code to be reviewed.
Comment #10
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #11
libbna commentedThe issue is on 11.x verison also so I will create a new MR against 11.x as, MR !3329 is against 10.1 version.
Comment #13
libbna commentedWhen I am checking out to new branch that I have created all the files gets removed, don't know why. I am unassigning myself for now so that someone can guide me what exactly the issue is!! Thanks!