You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add aria-label="[menu-name]" to the header menu, where [menu-name] is the name of the menu selected in the header settings. If the name of the menu contains "Menu" or "Navigation" these words should be removed.
Remove all uses of role="navigation" on div tags (replace with nav tags + arial labels)
Currently, the navs are labeled as follows which is causing screen readers confusion about where or what each nav is:
Current code for navs in header:
<header>
<nav>...Login....</nav> //not labeled at all
<div role="navigation"> //not labelled, and also using different landmark strategy
<ul>...</ul>
</div>
</header>
Recommendation
I recommend the following labels instead. You can use aria-labelledby OR aria-label (which is sometimes simpler for code purposes, but up to you all!).
Additionally, do NOT use the word "nav" or "menu" in the label since it is repetitive for screen readers and will announce as "Main navigation navigation" or "Secondary nav navigation."
jenlampton
changed the title
[A11y] Landmarks Issue: multiple nav elements with unique labels
[A11Y] Landmarks Issue: multiple nav elements with unique labels
Oct 1, 2021
3. Landmarks Issue: multiple nav elements with unique labels
Description of Issue: There are two different nav, or role="navigation" elements on all pages.
When there is more than 1 of the same landmark, there must a distinct and unique label applied to each to help users differentiate between them.
URL: https://pr3750-llnmetezlaix5oe10ddq5m3nya7zdz2b.tugboat.qa/ and https://pr3750-llnmetezlaix5oe10ddq5m3nya7zdz2b.tugboat.qa/magna
Testing Environment/Browser: Windows Lenovo PC, Windows 10 Pro, Chrome Browser v. 94.0.4606.61
Severity: P1
Solution:
aria-label="[menu-name]"
to the header menu, where [menu-name] is the name of the menu selected in the header settings. If the name of the menu contains "Menu" or "Navigation" these words should be removed.role="navigation"
on div tags (replace with nav tags + arial labels)Currently, the navs are labeled as follows which is causing screen readers confusion about where or what each nav is:
Current code for navs in header:
Recommendation
I recommend the following labels instead. You can use aria-labelledby OR aria-label (which is sometimes simpler for code purposes, but up to you all!).
Additionally, do NOT use the word "nav" or "menu" in the label since it is repetitive for screen readers and will announce as "Main navigation navigation" or "Secondary nav navigation."
Screenshot:
The text was updated successfully, but these errors were encountered: