Inserter: Patterns and Media selected items insufficient color contrast ratio #55730
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design
Needs design efforts.
[Package] Block editor
/packages/block-editor
[Type] Bug
An existing feature does not function as intended
Description
When selecting a Pattern or a Media category in the inserter, the category item is in a 'selected' state and an additional panel opens.
Semantically, the categories are a list with list items. The currently selected item does have a
aria-current="true"
attribute. So far so good.However, visually, the selected state is only communicated by the means of:
As such, it is very hard to visually distinguish the currently selected category. As this is an user interface control, the different state should be communicated with a color change that has at least a 3:1 contrast with the adjacent colors. Alternatively, a shape with 3:1 contrast could work.
Screenshot of Patterns catgories:
The Patterns selected category name is repeated in the additional panel. That helps, but still the selected category can't be visually distinguished in the categories list.
Screenshot of Media categories:
The Media category name is not repeated in the additional panel
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: