-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Audit and improve ToolsPanel
's a11y
#38059
Comments
ToolsPanel
's a11y (semantics, focus management, announcing changes to screen reader users)ToolsPanel
's a11y
@afercia @joedolson @WordPress/gutenberg-components @aaronrobertshaw in the context of looking to stabilize the component, is there any feedback that you'd like to share? |
Besides the genereal considerations i reported on #67954, from an a11y perspective I would like to see a few points to be considered:
Screenshot of mismatching visible text and accessible name: |
I'll second @afercia's comments. In regards to point 3, referring to the usage of In my opinion, if a control has a visible text label, it should not have an |
To further clarify: any 'explanation' as in: a description, should not be used for labeling. A description should be separated and be part of the accessible description. Instead, a label is determines the accessible name, which is what the control is about. It's the what the control does. In some cases, the what can be expanded a little but longer descriptions or explanations should go in a description. |
Thank you both for replying!
This shouldn't be the case in
This should be an easy change if/once we identity a better icon (cc @WordPress/gutenberg-design for feedback)
Do I understand correctly that the labels in this care are redundant and that removing them would solve the issue?
What about tweaking the label to "the %s value was ..." ? Or any other way where "%s" stops being the subject, so that we avoid the issue about the gender/ |
Connecting some dots with @juanfra who I believe recently added a reset button for color Items directly in the Item itself. |
Personally, I'd encourage to explore a separation between toggling and reset as I think it's one of the main sources of confusion in this UI. |
One thing that came up during implementation was the importance of ensuring that focus isn’t lost. Sometimes, icons for resetting values can be in specific locations and may disappear after being actioned, which could lead to a11y/focus issues. From a usability and intuitiveness standpoint, I believe consistency is key. It’s essential to define clear wording and iconography and apply them consistently wherever we offer the same action. |
I also agree that separating toggling from resetting controls feels like an improvement, although I'm not sure I like having the dropdown menu toggle inline with the input's label. Alternatively, we could take inspiration from #41546 and have a custom |
I don't think we should introduce more icons/UI if possible. The controls are already a lot to digest as is. |
I'm not confident in this. If you toggle off a control, the expectation is that it is no longer applied, therefore "reset." If these concerns are separate, you could end up with a control not visible, but still have its values reflected in the block, correct? |
I guess the interactions that we're interested in implementing are:
Listing all possible combinations may help us to find the right UX |
I think it's really a question of where the digestion occurs. Currently all the flows @ciampo outlined above are bundled into single a menu which seems simpler on the surface, but can lead to some confusing scenarios (see discussion in #67954). This will get worse as #67813 is implemented. There are some smaller trade-offs too, like forcing us to use strange labels e.g. "Block spacing RESET", the knock-on effect of which is including arguably unnecessary clarification aria-labels e.g. "Reset Block spacing". I'm all for keeping the resting UI as clean as possible. But I think this is a scenario where a bit more UI might actually be helpful. For instance the 'Reset' menu trigger would only appear when the panel contains local overrides; which actually goes a small way to visualising the hierarchy of styles (#49278)—users can tell at-a-glance whether or not a panel contains overrides rather than having to check the ellipsis menu. A bit similar to the 'Detach' button in Figma, which only appears when using variables: |
(semantics, focus management, announcing changes to screen reader users)
The text was updated successfully, but these errors were encountered: