-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
color contrast issues #4871
Comments
Apart from syntax highlighting (part of ReSpec), we'd need to file above in w3c/tr-design repo, as same colors get used by Bikeshed too (base.css). I'll try finding some time this weekend to address this. Happy to review PRs though. |
Thanks @sidvishnoi. Is there a way to configure the highlight.js theme in the respec configuration? It offers some themes with better contrast. |
Hmm. The dark mode PR (#3236) said this:
Apparently relating to the following blocks of code: respec/src/styles/highlight.css.js Lines 27 to 43 in 19b2c0e
respec/src/styles/algorithms.css.js Lines 24 to 31 in 19b2c0e
It seems that the issue is that https://github.com/w3c/tr-design/blob/gh-pages/src/fixup.js can disable W3C's dark-mode stylesheet but nobody else's. #4687 is basically about how to handle it here, w3c/tr-design#349 was about having fixup.js set a global class, but that (afaik) won't ultimately work for viewing a pre-processed spec with JavaScript turned off. I filed w3c/tr-design#363 requesting an explanation of how to use the feature. |
While working on w3c/aria#2410 I found some contrast issues that can also be observed on https://respec.org/docs/.
var(--tocsidebar-heading-text)
).toc code {#005a9c}
leads to insufficient contrast.idlHeader { color: var(--defrow-border,#fff)}
)I'll update this issue if I find more.
The text was updated successfully, but these errors were encountered: