Skip to content

fix(cdk/menu): disabled behavior fixes for menu item #31721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Aug 19, 2025

Fixes the following issues with the disabled behavior of the CDK menu item:

  • The item wasn't receiving focus like specified in the spec.
  • There wasn't a proper way to style disabled items which led users to use aria-disabled.
  • Clicking the disabled item didn't prevent the default behavior.

Fixes #31179.

Fixes the following issues with the disabled behavior of the CDK menu item:
* The item wasn't receiving focus like specified in the spec.
* There wasn't a proper way to style disabled items which led users to use `aria-disabled`.
* Clicking the disaled item didn't prevent the default behavior.

Fixes angular#31179.
@crisbeto crisbeto requested a review from a team as a code owner August 19, 2025 11:09
@crisbeto crisbeto requested review from adolgachev and andrewseguin and removed request for a team August 19, 2025 11:09
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cdk/menu target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(cdkMenu): cdkMenu keyboard navigation loses focus on disabled items and does not follow ARIA guidance
3 participants