aria-label
for heading menu duplicates information provided by the aria-expanded
attribute
#3696
Labels
accessibility
audit may 2023
Issues from May 2023 external accessibility audit against WCAG 2.2 criteria
header
Milestone
This issue is from May 2023 external accessibility audit report.
Usability issue
A menu button contained additional text which is not required.
Issue ID:
DAC_Usability_Menu_Button_01
URLs:
https://govuk-frontend-pr-3503.herokuapp.com/full-page-examples/task-list
Screen shots
The menu button has been provided with an ‘aria-label’ adding the phrase ‘show or hide’ to the accessible name. However, as the ‘aria-expanded’ already conveys the functionality and current state, the show or hide text may add some confusion.
Current code ref(s)
body > header > div > div.govuk-header__content > nav > button
User comments
No user comment provided.
Solution
Consider removing the ‘show or hide’ from the accessible name and just use ‘menu’ in conjunction with the ‘aria-expanded’, as this already conveys the appropriate functionality and state of the component.
The text was updated successfully, but these errors were encountered: