We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Every URL with a code comment, such as https://eslint.org/blog/2024/10/code-review-nit-to-ecosystem-improvements.
I ran an aXe check via Chrome lighthouse on the ESLint site.
There should be zero WCAG AA violations.
The only failure was on the colors of code comments:
#6E7F8E
#F9FAFB
As shown in https://webaim.org/resources/contrastchecker/?fcolor=6E7F8E&bcolor=F9FAFB, their contrast is 3.94:1. That does not satisfy WCAG 2.0 AA's minimum ratio of 4.5:1 for normal text.
I think the simplest solution would be to darken the code comments color. #697487 would produce a 4.51:1 contrast ratio per https://webaim.org/resources/contrastchecker/?fcolor=697487&bcolor=F9FAFB.
#697487
The text was updated successfully, but these errors were encountered:
Go for it, just be sure we stick to our defined color palette grays for consistency:
eslint.org/src/assets/scss/tokens/themes.scss
Lines 4 to 14 in cb1dd45
Sorry, something went wrong.
Note: You'd need to make this change separately on the docs site in the eslint repo.
eslint
Successfully merging a pull request may close this issue.
URL(s)
Every URL with a code comment, such as https://eslint.org/blog/2024/10/code-review-nit-to-ecosystem-improvements.
What did you do?
I ran an aXe check via Chrome lighthouse on the ESLint site.
What did you expect to happen?
There should be zero WCAG AA violations.
What actually happened?
The only failure was on the colors of code comments:
#6E7F8E
#F9FAFB
As shown in https://webaim.org/resources/contrastchecker/?fcolor=6E7F8E&bcolor=F9FAFB, their contrast is 3.94:1. That does not satisfy WCAG 2.0 AA's minimum ratio of 4.5:1 for normal text.
Participation
Additional comments
I think the simplest solution would be to darken the code comments color.
#697487
would produce a 4.51:1 contrast ratio per https://webaim.org/resources/contrastchecker/?fcolor=697487&bcolor=F9FAFB.The text was updated successfully, but these errors were encountered: