layouts: add accessible name to mobile navigation button - #56937
layouts: add accessible name to mobile navigation button#56937LibenHailu wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
22dd2e3 to
02b0d19
Compare
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
…gation button Add aria-label and dynamic aria-expanded state to the hamburger button in the navbar to comply with WCAG 4.1.2 (Name, Role, Value).
02b0d19 to
dd109d4
Compare
There was a problem hiding this comment.
I think we can close the actual issue without updating this (legacy) file.
If we can, I say we should: the disposition of this script should be a separate rewrite.
What this PR does / why we need it
Adds aria-label and aria-expanded attributes to the #hamburger mobile navigation button in
layouts/partials/navbar.html and adds the corresponding toggle_navigation translation string in i18n/en/en.toml.
This ensures screen readers and assistive technologies receive a valid accessible name per WCAG 4.1.2 (Name, Role,
Value).
Which issue(s) this PR fixes
Fixes #56924
Special notes for your reviewer
• Added [toggle_navigation] string to i18n/en/en.toml for Hugo i18n lookup.
• Verified button attributes meet WCAG 4.1.2 requirements.
Does this PR introduce a user-facing change?