-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks use custom selection color #15270
Comments
To my knowledge, Firefox honors |
Right, I missed the "and use a Windows high-contrast theme" part :) |
I'll take a look at this. In today's triage on slack, the Design Team agreed to just use the browser's default highlight if possible. How this effects high contrast modes will probably need further work. |
Leaving selection to the default will Just Work. |
So @StommePoes, thanks for your detailed comments. In your experience, Windows high contrast mode in FF will still show the text as highlighted if we use the default browser selection highlight? Is that correct? |
This issue was also brought up in sanitize.css. csstools/sanitize.css#173 |
@mapk correct. As in, simply not having a ::selection or -moz-selection anything in the CSS at all. |
Blocks use custom selection color
Issue description
Blocks use a custom CSS color for text selection.
For Firefox users who have low-vision and use a Windows high-contrast
theme, custom selection colors are not honoured, but are not replaced by
defaults either. Consequently, these users will not be able to see what
text is selected.
Issue Code
Remediation Guidance
Remove custom selection rules, and allow the browser/OS native color to
be rendered.
Relevant standards
(Level A)
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-97 in Tenon's report
The text was updated successfully, but these errors were encountered: