[wp-trac] [WordPress Trac] #62916: Twenty Twenty: aria-controls & aria-expanded attributes missing from primary menu
WordPress Trac
noreply at wordpress.org
Mon Mar 3 23:39:34 UTC 2025
#62916: Twenty Twenty: aria-controls & aria-expanded attributes missing from
primary menu
---------------------------+----------------------------
Reporter: bschneidewind | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.8
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility
---------------------------+----------------------------
Comment (by joedolson):
It's debatable whether these should actually have `aria-expanded`
attributes. There is no action taken to open or close these menus. From a
screen-reader perspective, they aren't actually hidden, and there's no
need to disclose them - the navigation is continuous.
`aria-expanded` is intended to convey the results of an action with a
state change; but there's no state change here. The sub menus are only
hidden visually, using off-screen positioning similar to screen reader
text classes.
In my opinion, not having `aria-expanded` is correct here, given the
behavior.
@afercia Your opinion?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62916#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list