-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Future Dev
The aria roles "menu" and "menuitem" are mostly used for complex navigation in desktop application. In the case of a simple site navigation, these are unnecessary and may be a cause for confusion.
The W3C does not recommend using the menu aria role for site navigation:
Typical site navigation does not need all the keyboard interactions specified by the menu and menubar pattern.
Using the aria menu and menu item unnecessarily could be considered a failure of WGAG SC 4.1.2 Name, Role, Value.
How to reproduce
- Login to the Moodle sandbox as an admin
- Go to Advanced theme settings and add a submenu to the custommenuitems
- Inspect the new drop-down item in the main site navigation.
The issue can also be reproduced by inspecting the "More" item in the secondary navigation.
Suggested solution
Remove the aria roles menu and menuitem from submenus. Ensure that simple site navigation items don't use this pattern.