-
Notifications
You must be signed in to change notification settings - Fork 17
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
Check the text color constrast #391
Comments
Using "normal" text for WebAIM:
Looks like we need better colours! |
Playing with the colour picker in snook:
[aside: I'm loving GitHub Markdown's blob of colour after those colour values!] Another thing we could play with would be to put a background colour behind the text and use black or white foreground colour to get a better result. For example:
Codepen that does that, by way of example: https://codepen.io/nigelmegitt/pen/dKVObZ |
For me having red-green colour blindness, these colours are unfortunately not easily distinguishable. I would prefer the background colour approach. The example you propose seems to be good. I would just prefer colours that are more close to real green or red, if possible. Does using different background (instead of text) colours maybe relax the contrast requirements? Would it possibly allow to use the current text colors of #388 as background colours? |
@spoeschel The only colour that is different from the current text colours of #388 is the green one. Using If you want the red to be redder, |
A codepen showing those colours as per #391 (comment) but with a slightly paler orange of |
Following @spoeschel 's comments about red and green being hard to tell apart for some people, I noticed that the words are also a similar shape, beginning and ending with the same letter and being about the same width on the screen, so I've updated the codepen to include a check mark or a cross or an exclamation mark to make it even quicker and easier to tell them apart. |
I like the idea of adding a mark. Adding a background to the term will require the removal of the background on alternate rows, which is probably ok. |
@palemieux I don't follow why? I see that the current approach in the That would have the small advantage of not needing to make the |
This is one of the reasons why it is difficult to distinguish the different dispositions and why we need additional means. Your idea with the marks provides a good additional indication (especially when the table is printed on a B/W printer) and should be adopted as well.
Regarding the prohibited and permitted colours, comparing both next to each other is quite OK, but the colour combination is not suitable for just catching a glimpse unfortunately. With white foreground colour I wasn't able to find a suitable combination with snook.ca that passes WCAG 2 AAA Compliance, but with black foreground for all three dispositions, it seems to work: https://codepen.io/anon/pen/XYeEoy
[I wasn't able to find out how you added the colour boxes] |
@spoeschel the trick is to enclose the hex RGB value in backticks like so:
|
@spoeschel the colours you have in #391 (comment) look fine to me. I'm happy with that option also. |
See #388 (comment)
@nigelmegitt to specify tool/criteria.
The text was updated successfully, but these errors were encountered: