Increase the contrast of the selected block outline #12088
Labels
[Feature] Blocks
Overall functionality of blocks
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design
Needs design efforts.
[Type] Bug
An existing feature does not function as intended
Milestone
Splitting this out from #11737
Indication of the active part in an UI is of fundamental importance for keyboard users and benefits all users. Usually this applied to the element that has focus. In Gutenberg it applies also to the "selected" block.
According to the WCAG 2.1, non-text contrast (which means contrast of UI components) must be at least 3:1. In #11737 (comment) it was agreed the selected outline contrast can be increased slightly.
The current "selected" indication is a very light grey outline:
Among the current available greys in the color palette,
#8d96a0
is the one to use for non-text contrast against a white background. However, this grey needs to be slightly adjusted. Just checked and, though it's a matter of roundings, the actual contrast ratio against white is 2.99:1 🙂 For formal compliance it must be 3:1.The text was updated successfully, but these errors were encountered: