Skip to content

fix(a11y): announce skin tone menu state in emoji picker - #19

Merged
kmaraz merged 1 commit into
mainfrom
kamil/a11y-1
Nov 14, 2025
Merged

fix(a11y): announce skin tone menu state in emoji picker#19
kmaraz merged 1 commit into
mainfrom
kamil/a11y-1

Conversation

@kmaraz

@kmaraz kmaraz commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

Screen readers couldn’t tell whether the emoji picker’s “Choose default skin tone” toggle was collapsed or expanded, so aria-expanded never changed and there was no spoken feedback. I added state-aware labeling inside Picker.tsx, wiring aria-expanded and the button’s aria-label to reflect the open/closed state and to fall back gracefully if localized strings are missing. To keep the experience consistent in every language, I expanded each locale’s a11y section with translations of “collapsed” and “expanded,” so the new label stays localized across the board.

@kmaraz
kmaraz marked this pull request as ready for review November 14, 2025 12:20
Comment thread packages/emoji-mart/src/components/Picker/Picker.tsx Outdated
Screen readers couldn’t tell whether the emoji picker’s “Choose default skin tone” toggle was collapsed or expanded, so aria-expanded never changed and there was no spoken feedback. I added state-aware labeling inside Picker.tsx, wiring aria-expanded and the button’s aria-label to reflect the open/closed state and to fall back gracefully if localized strings are missing. To keep the experience consistent in every language, I expanded each locale’s a11y section with translations of “collapsed” and “expanded,” so the new label stays localized across the board.
@kmaraz
kmaraz merged commit c60d69d into main Nov 14, 2025
2 checks passed
@kmaraz
kmaraz deleted the kamil/a11y-1 branch November 14, 2025 14:05
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.

4 participants