-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
The state of toggle buttons is conveyed only via color with low contrast #1405
Comments
A way that CKE4 mitigates this issue is by adding an extra outline to the button. Let's see what are the options to satisfy this requirement. See:
Another option is to do what Google docs is doing: the background color of the icon changes ever so slightly but the icon color is changed significantly and it satisfies level AA contrast requirements. We have bunch of predefined CSS colors that might or might not be used for it. |
The outline sounds like a fine solution but IIRC @Reinmar indicated that this was considered too visually disruptive for the design. @lauriii indicated similar challenges in the work he did on https://www.drupal.org/project/claro β this aspect was one of the most challenging problems! FYI: tracking this at https://www.drupal.org/project/drupal/issues/3283803 π |
Lets mock quick and dirty examples based on #1405 (comment) and put screenshots here. |
Blocked by #11989 |
Is this a bug report or feature request? (choose one)
π Bug report
π» Version of CKEditor
https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html
π Steps to reproduce
β Expected result
The contrast between the button's background and toolbar is at least 3:1.
β Actual result
The contrast between the button and toolbar is around 1.28:1
π Other details that might be useful
The text was updated successfully, but these errors were encountered: