- πΊπΈUnited States rraney
I'm seeing a couple of related issues with the Megamenu module for Drupal 10.
1. In a dropdown "level 1" submenu, such as:
<span class="tbm-link level-1 no-link tbm-toggle" tabindex="0" aria-expanded="false"> Explore </span>
This is reportedly a misuse of aria attributes, according to WCAG 2.1 AA, SC 4.1.2.
To fix: ARIA attribute is not allowed: aria-expanded="false"2. The level 1 "list" used in megamenu is missing the "aria-haspopup" attribute:
<li class="tbm-item level-1 tbm-item--has-dropdown" aria-level="1">
This also deals with SC 4.1.2.
To fix: Add aria-haspopup="true" to menu items with dropdowns. Ensure the menu element with aria-haspopup is focusable and can activate the popup.