[wp-trac] [WordPress Trac] #62215: Remove `role="presentation" from h4 section headings in customizer nav menus
WordPress Trac
noreply at wordpress.org
Sun Oct 13 19:34:31 UTC 2024
#62215: Remove `role="presentation" from h4 section headings in customizer nav
menus
---------------------------+-----------------------------
Reporter: joedolson | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.3
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
In [https://core.trac.wordpress.org/ticket/32715#comment:10 32715],
@afercia recommended adding `role="presentation"` to the headings that
mark navigation menu sections in the customizer. At that time, the
accordion behavior was attached directly to the heading, and it was
confusing to have heading semantics and button behavior on the same
element. Following [r59224], the accordion behaviors are attached to a
button nested inside the heading, and restoring the semantics of those
headings is reasonable.
I didn't do this in [r59924], because there are a number of other related
changes that should also be made so that the heading hierarchy in the
customizer makes sense.
There are also additional considerations because the headings hierarchy of
the page being customized are also present on the page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62215>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list