Skip to content

Style Book icon button in the navigator doesn't show any pressed style #52594

@afercia

Description

@afercia

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.

Screenshot 2023-07-13 at 13 01 38

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.

Screenshot 2023-07-13 at 13 02 16

As such, sighted users can't determine the state of the button, which is a less than ideal UI.

Step-by-step reproduction instructions

  • Go to the Site Editor > Design > Styles.
  • Click the Style Book icon button.
  • Observe there's no visual difference when the button is pressed and non-pressed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions