Skip to content
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

fix: improve a11y of skin tone picker #297

Merged
merged 2 commits into from
Mar 14, 2019

Conversation

nolanlawson
Copy link

I don't think this is a full fix for #294 but it's a bit better than before. When the picker is not expanded, it's a popup button, then when you click it it becomes a toggle button within a menu item within a menu of similar buttons.

I tested this in NVDA and VoiceOver, and it works much better in NVDA than VoiceOver (VoiceOver doesn't seem to notice the toggle state for the buttons, nor the menu). But it's usable in either one.

nolanlawson added a commit to nolanlawson/emoji-mart that referenced this pull request Mar 13, 2019
…in-dots

fix: improve a11y of skin tone picker
nolanlawson added a commit to nolanlawson/emoji-mart that referenced this pull request Mar 13, 2019
…in-dots

fix: improve a11y of skin tone picker
@nolanlawson
Copy link
Author

Apparently Preact doesn't like the syntax {...(condition && {foo: 'bar'})}, so I'm using {...(condition ? {foo: 'bar'} : {})} instead.

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