-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Color Palette: improve keyboard navigation #35292
Comments
I'm going to work on this, I'll be opening a PR soon // cc @ciampo |
Bit of a brain dump... My initial consideration was that perhaps the most appropriate semantics would be a set of radio inputs ( It's quite possible that this change would not be an issue. In all likelihood most people don't use the keyboard to navigate this component, so would not be impacted. Those that do would probably understand the way radio controls work, particularly if using a screen reader which would present the appropriate semantics. However, given that Happy to hear your thoughts though, @ciampo. |
Given that @ciampo will be somewhat slower to respond for the foreseeable future, I'm wondering if @afercia / @alexstine / @joedolson / @mirka might have any input. |
I think radio buttons are fine for this. Just need to make it clear to users that once an option is selected, there isn't a submit button or anything to confirm the change. Maybe an |
I am assuming that this is technically about the And the way that |
@alexstine Technically, nothing is saved until the user saves their changes to the post or template, so I think that may not be necessary. And might be inaccurate, if it implied something had been saved when it hadn't. If the normal semantics of a radio selection are maintained, I think it should be fairly clear. |
Sounds good. No alert needed then. |
I'd already started working on a |
Ended up doing more work on the |
Closing as fixed by #52255 |
What
Rewrite the Color Palette component to use the
Composite
component and to haverole="listbox"
, so that each Color Palette becomes one tab stop.Why
Tabbing through the many options in a Color Palette can be tedious, as each color represents a tab stop:
Kapture.2021-10-01.at.17.03.37.mp4
The Color Palette component is a good candidate for the
listbox
role and Reakit’sComposite
. WithComposite
, users will be able to tab to the list of color options but then use the arrow keys to navigate within the list of options. This enables users navigating with the keyboard to more efficiently navigate the UI.A/C
Composite
component internallyrole="listbox"
The text was updated successfully, but these errors were encountered: