Focus does not move to submenu when opened by enter or space key

Created on 17 August 2025, about 2 months ago

Problem/Motivation

In πŸ“Œ Ensure keyboard navigation works with the drawer Active , the MenuBar spec says for Enter / Space:

If the item is a parent menu item, opens submenu and moves focus to first item in the submenu.

For me, focus doesn't move to the first item in the submenu when the submenu opens.

This happens in both the "desktop" and "mobile" versions.

The attached video demonstrates the problem.

Steps to reproduce

  • Enable the Navigation module.
  • Log in as admin.
  • Tab to an item in the Navigation menu bar that has a submenu.
  • Press Enter or Space.

The focus moves to the first item in the submenu.

The focus stays on the parent menu item. In the "mobile" version, the item with the focus is obscured.

Proposed resolution

  • Move focus to the first item in the submenu.
  • Update tests to confirm that it works correctly.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

navigation.module

Created by

πŸ‡ΊπŸ‡ΈUnited States kentr Durango, CO

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

Production build 0.71.5 2024