Needs review
Project:
Drupal Mega Menu
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2019 at 19:17 UTC
Updated:
9 Jun 2020 at 09:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Haley.O commentedI have created a patch that accounts for the menu item being a
<span>in the we_megamenu_frontend.js file.Comment #3
Haley.O commentedComment #4
michelledarlingAnother solution is to copy we-megamenu-li.html.twig template to your theme folder and change to:
With this change, the top level links are focusable and can be traversed and opened with
tab+enteron a keyboard, making the menu more accessible. (I use a custom Bootstrap theme with some boilerplate ARIA stuff in JS so if it doesn't work for you, let me know and I'm happy to give more information about how this can be accomplished.)