Ensure editor color palette provides accessible contrast #2808
Closed
Ovgodd
started this conversation in
Ideas & Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request
Is your feature request related to a problem or unsupported use case? Please describe.
The color palette offered by the editor contains colors whose contrast ratios do not meet the required accessibility thresholds.
Some colors can produce insufficient contrast when applied to text, especially against light or dark backgrounds.
No indication is currently provided to the user about whether the selected color is accessible or not.
This can mislead authors into creating inaccessible documents even when they only use the default editor palette.
Describe the solution you'd like
The default color palette should only contain colors that meet contrast requirements.
Expected contrast thresholds:
If users can enter a custom color outside the default palette, a warning should inform them when the selected color does not meet the required contrast ratio.
Example warning:
The goal is to help users create accessible documents by default.
Describe alternatives you've considered
Another option would be to keep the current palette and only provide documentation about contrast rules.
However, this would put too much responsibility on authors and would still allow non-compliant colors to be offered by default.
A better approach is to provide compliant colors by default, and warn users only when they choose a custom value that may not be accessible.
Discovery, Documentation, Adoption, Migration Strategy
Steps to reproduce:
Expected behavior:
Additional context:
Authors are responsible for their editorial choices, but the editor should not provide non-compliant choices by default without any warning.
Beta Was this translation helpful? Give feedback.
All reactions