Menu unresponsive to keyboard - fails WCAG compliance

Created on 6 December 2022, almost 2 years ago
Updated 27 June 2024, 2 months ago

Hello - love the theme!
I am having trouble with the navigation, specifically with the dropdown menus. While the "parent" is focusable, you cannot use a keyboard to interact with the child elements.

I was trying to make the site compliant with WCAG 2.1 Keyboard 2.1.1.

I am using the menu--responsive-h.html.twig file to build my custom menu. The menu has parents and children (one level deep).
I can see that "focus" is applied to the li-parent, but I cannot use the enter or spacebar to interact with the menu.

I see that if you make the menu's current parent <li><a> a <button>, then this allows for compliant behavior as noted here: https://www.w3.org/WAI/ARIA/apg/example-index/disclosure/disclosure-navigation#mythical-page-content, but that involves new structure to the menu twig file.

I've been able to build out a new menu structure with new javascript, but it would be wonderful if this could be incorporated within the parent theme.

Thank you

🌱 Plan
Status

Closed: duplicate

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States ux-guy

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024