[wp-trac] [WordPress Trac] #62215: Remove `role="presentation" from h4 section headings in customizer nav menus
WordPress Trac
noreply at wordpress.org
Fri Feb 14 20:33:03 UTC 2025
#62215: Remove `role="presentation" from h4 section headings in customizer nav
menus
-----------------------------------------------+---------------------------
Reporter: joedolson | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8
Component: Customize | Version: 4.3
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info commit | Focuses:
| accessibility
-----------------------------------------------+---------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"59825" 59825]:
{{{
#!CommitTicketReference repository="" revision="59825"
Customize: Accessibility: Restore heading semantics in sections.
Remove `role="presentation"` from headings in the customizer. These were
needed to avoid confusing semantics when the headings also acted as
buttons to control accordions, changed in [59924].
Change responsive CSS to use `screen-reader-text` styling rather than
`display: none` so that mobile retains the headings hierarchy.
Props joedolson, hbhalodia, mikinc860, guillaumeturpin, rcreators,
tirth03, dhrumilk .
Fixes #62215.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62215#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list