material-components / material-components/material-web
Menu should focus during opening animation
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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