Skip to content
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

Standard <code> element styling violate WCAG 1.4.1 Use of color #345

Open
WilcoFiers opened this issue Apr 6, 2023 · 2 comments
Open

Standard <code> element styling violate WCAG 1.4.1 Use of color #345

WilcoFiers opened this issue Apr 6, 2023 · 2 comments
Assignees

Comments

@WilcoFiers
Copy link

ACT is having difficulties with the styles the WAI site uses for code elements and code blocks.

Here's an example of the issue:
https://www.w3.org/WAI/standards-guidelines/act/rules/aizyf1/proposed/#passed-example-1

Screenshot Passed example 1 and 2

The contrast between the code and the rest of the text is 1.34:1. It is very easily missed. There is also no other style changes like you see on many other sites. For example code blocks often get an outline, change in background, and a change of font. Any one of these might be sufficient, but more would probably be better.

@yatil
Copy link
Contributor

yatil commented Jul 20, 2023

That does not – by definition – violate Use of Color because the font is also changed. That said, I’m sure WAI welcomes a better layout in a pull request.

@shawna-slh
Copy link
Collaborator

@iadawn just one example of the backlog...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants