Skip to content

fix(list-box-selection): fix aria-label for clear button #2134

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

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Mar 22, 2025

Identified in #2131

ListBoxSelection is used by MultiSelect and ComboBox.

Currently, it uses the incorrect aria-label for the clear selection button. It's using the translateId (e.g., "clearAll") instead of the user-friendly copy.

A follow-up would be to adjust the copy based on selectionCount. For example, for MultiSelect, there may be multiple values selected. For ComboBox, it wouldn't make much sense to have "Clear all selected items" if there is only one selected item.

@metonym metonym merged commit dd1338f into master Mar 22, 2025
3 checks passed
@metonym metonym deleted the fix-multiselect-clear-label branch March 22, 2025 19:59
@metonym
Copy link
Collaborator Author

metonym commented Mar 24, 2025

Fixed in v0.88.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant