material-components / material-components/material-web

Menu should focus during opening animation

Open
#5,662 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
11.3k
Forks
1.1k
Avg merge
20h 28m
Merged PRs (30d)
13

Description

### What is affected?

Accessibility, Component

### Description

Currently when opening a menu, the entire opening animation has to finish before the default focus is applied, which is rather annoying as a keyboard user.

### Reproduction

https://material-web.dev/components/menu/

### Workaround

The only workaround is setting quick open on all your menus to skip the animation.

### Is this a regression?

No or unsure. This never worked, or I haven't tried before.

### Affected versions

1.5.1

### Browser/OS/Node environment

Browser: Edge 126.0.2592.68
OS: Windows 11
Node version: 22.3.0
npm version: 10.8.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the opening behavior on the Material Web menu reproduction page, using keyboard interaction in Edge 126 on Windows 11. Start by locating the menu component's focus handling and animation path; done means the default focus is applied before the opening animation finishes, without requiring quick open.

Written by the indexing model from the issue text.

Assessment

Tech stack
scss
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.