-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Code block legibility poor #305
Comments
Thanks for the issue. http://wave.webaim.org/report#/https://carpentries.github.io/lesson-example/04-formatting/index.html reports that some elements has contrast ratio of 2.74:1 which is really low. |
After using WAVE to check the contrast ratio for all possible colors in syntax.css, it looks like the following need to be changed:
Before I make a pull request: What is "Text.Whitespace" used for? My understanding is that whitespace, by definition, does not have a color. Removing Text.Whitespace from syntax.css would be simplest, so please let me know if there is a reason not to. |
Hi @TheoAcker12. As for the "text.whitespace" -- I agree with you that it doesn't make sense to set it if it's used properly |
Hi @maxim-belkin, I tested them with the general code block background color of Other than the comment colors, I'm not sure how often any of these are used by the code highlighter, so I'm definitely not surprised that the comments are the only ones with low contrast in the lessons you maintain. |
This is related to issue #168 on selecting fonts to improve readability for people with dyslexia. But this is a different question so I choose to open it as a separate issue. I am referring to the actual code blocks enclosed in triple tildes, that are rendered with fix font terminal type:
In the Software Carpentry lessons these blocks are rendered with very poor contrast, with dark grey text on light grey background. I know people with impaired vision for whom these sections would be completely illegible. It is actually not uncommon to find web pages where the design follows this, let us call it fashion, and it is a real problem for some people.
I hope somebody can come up with an intelligent solution for this. The terminal font itself is fine, could be
thicker
, but it would also help a lot to increase the contrast between text and background.Regards,
Olav
The text was updated successfully, but these errors were encountered: