Selected block outline has insufficient color contrast #15269
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Selected block outline has insufficient color contrast
Issue description
When the mouse moves over a block, a bright blue outline appears.
However when keyboard focus is in a block or any of that block's
editing controls, the outline is a very light gray, the contrast of
which is below the minimum threshold of 3:1 for interface controls:
This makes it more difficult for low-vision users to see which block
they've moved into. If they're using the Arrow keys to move the
cursor, the block toolbar does not immediately appear, and therefore the
only way for users to identify which block they're in is this pale gray
border, and the text cursor.
Sufficient color contrast is important for users who have low-vision or
are color-blind, because content with a low contrast ratio may be
difficult or impossible for such users to see.
Issue Code
Remediation Guidance
Darken the
outline
color to achieve a minimum contrast ratio of 3:1 relative to the white background.Recommended Code
Relevant standards
1.4.11 Non-text Contrast (Level
AA)
Note: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-100 in Tenon's report
The text was updated successfully, but these errors were encountered: