-
Notifications
You must be signed in to change notification settings - Fork 287
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
[DOCS]: Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio. thresholds #4276
Comments
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
1 similar comment
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
2 similar comments
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
need to do something with Prism potentially |
fixes #4276 Added VS code-based theme w better contrast for code snippets.
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
1 similar comment
This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue . |
Fixed by #4402 |
Closing this and tracking this bug as #4748. |
What happened?
The color contrast ratio for the code text present on the page is 3.2 which is very less than expected ratio.
How do we reproduce the behavior?
Repro Steps:
What do you expect to happen?
The color contrast ratio for the code text present on the page should be greater than or equal to 4.5:1.
What environment were you using?
Test Environment:
OS Build: Windows 11 Enterprise Insider Preview 22H2 (23493.1000)
Edge Browser: Version 115.0.1880.3 (Official build) dev (64-bit)
User ID: V-
Tool: AI4W
URL: https://docs.pwabuilder.com/#/home/native-features
Additional context
Note:
Issue is repro at every URLs where code is present.
Element path:
.language-json[data-lang="json"]:nth-child(12) > .language-json > .string.token:nth-child(15)
Snippet:
"Noteworthy news from today."
How to fix:
Fix any of the following:
Element has insufficient color contrast of 3.2 (foreground color: #669900, background color: #f7f7f7, font size: 11.4pt (15.2px), font weight: normal). Expected contrast ratio of 4.5:1.
User Experience:
When a minimum contrast ratio is not provided between text and its background, it is difficult for low-vision users as well as anyone in extreme lighting environments to read the content.
WCAG Reference:
https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
Attachments:
The text was updated successfully, but these errors were encountered: