#62916 closed defect (bug) (invalid)
Twenty Twenty: aria-controls & aria-expanded attributes missing from primary menu
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.3 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | accessibility | Cc: |
Description
On the TwentyTwenty theme, dropdown menus on the primary menu are missing the aria-controls and aria-expanded attributes.
Attachments (2)
Change History (11)
This ticket was mentioned in PR #8272 on WordPress/wordpress-develop by @bschneidewind.
6 weeks ago
#1
- Keywords has-patch added
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
6 weeks ago
#3
@
6 weeks ago
- Milestone changed from Awaiting Review to 6.8
- Owner set to joedolson
- Status changed from new to accepted
- Version set to 5.3
@audrasjb commented on PR #8272:
6 weeks ago
#4
#5
@
3 weeks ago
Test Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/8272
Environment:
WordPress - 6.8-alpha-20250207.133319
OS - Windows
Browser - Firefox
Theme: Twenty Twenty
PHP - 8.2.12
Active Plugin: None
Actual Results:
- Issue Resolved With Patch.✅
Screenshots:
- Added Attachment
#6
@
3 weeks ago
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?
On the TwentyTwenty theme, dropdown menus on the primary menu are missing the aria-controls and aria-expanded attributes.
Trac ticket: https://core.trac.wordpress.org/ticket/62916