Style Book icon button in the navigator doesn't show any pressed style #52594
Labels
Needs Design Feedback
Needs general design feedback.
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
Description
The 'Stye book' icon button is a 'toggle button' as in: can be activated and it stays in a 'pressed' state until it is deactivated. When activated, the editor shows the Style Book.
The 'pressed' state must be communicated visually and semantically.
Semantically: the button gets an
aria-pressed="true"
attribute.Visually: it should show a pressed style.
In the Editor settings panel, the pressed style works well: the button gets a dark background against the white nackground of the sidebar. Screenshot: on the left: non-pressed, on the right: pressed.
However, in the Navigator panel, the pressed style doesn't work simply because the background of the panel is dark and the icon button is adrl also when non-pressed. There is no visual difference between the two states.
Screenshot: on the left: non-pressed, on the right: pressed.
As such, sighted users can't determine the state of the button, which is a less than ideal UI.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: