Skip to content

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
@crisbeto crisbeto removed the request for review from andrewseguin August 20, 2025 10:54
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Aug 20, 2025
@crisbeto crisbeto merged commit d61e35d into angular:main Aug 20, 2025
27 of 29 checks passed
@crisbeto
Copy link
Member Author

The changes were merged into the following branches: main, 20.1.x, 20.2.x

crisbeto added a commit that referenced this pull request Aug 20, 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 disaled item didn't prevent the default behavior.

Fixes #31179.

(cherry picked from commit d61e35d)
crisbeto added a commit that referenced this pull request Aug 20, 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 disaled item didn't prevent the default behavior.

Fixes #31179.

(cherry picked from commit d61e35d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker 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