Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82201

Submenus (customitems) have unneccessary aria roles (menu, menuitem)

XMLWordPrintable

      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.

       

            Unassigned Unassigned
            Zanatta Susanna
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 13 minutes
                13m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.