Skip to content

fix(aria/menu): do not set default aria-label#33202

Merged
crisbeto merged 1 commit intoangular:mainfrom
crisbeto:32893/aria-menu-label
May 5, 2026
Merged

fix(aria/menu): do not set default aria-label#33202
crisbeto merged 1 commit intoangular:mainfrom
crisbeto:32893/aria-menu-label

Conversation

@crisbeto
Copy link
Copy Markdown
Member

@crisbeto crisbeto commented May 5, 2026

This is something that came up in an internal app: by default we were setting aria-label to the value of the menu item. This both prevents users from setting their own aria-label and is redundant since the item would usually have some content.

Fixes #32893.

This is something that came up in an internal app: by default we were setting `aria-label` to the value of the menu item. This both prevents users from setting their own `aria-label` and is redundant since the item would usually have some content.

Fixes angular#32893.
@crisbeto crisbeto requested a review from ok7sai May 5, 2026 07:38
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label May 5, 2026
@pullapprove pullapprove Bot requested review from tjshiu May 5, 2026 07:38
@crisbeto crisbeto added the G This is is related to a Google internal issue label May 5, 2026
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label May 5, 2026
@crisbeto crisbeto merged commit 4d045b8 into angular:main May 5, 2026
34 checks passed
@crisbeto
Copy link
Copy Markdown
Member Author

crisbeto commented May 5, 2026

This PR was merged into the repository. The changes were merged into the following branches:

crisbeto added a commit that referenced this pull request May 5, 2026
This is something that came up in an internal app: by default we were setting `aria-label` to the value of the menu item. This both prevents users from setting their own `aria-label` and is redundant since the item would usually have some content.

Fixes #32893.

(cherry picked from commit 4d045b8)
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: aria/menu G This is is related to a Google internal issue 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(aria/menu): menu item erroneously binds value to aria-label

2 participants