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

More accessible luminosity contrast on colour for <code> #307

Merged
merged 2 commits into from Jul 3, 2014

Conversation

jasonkiss
Copy link
Contributor

The red used for <code> is a little low on contrast and doesn't meet the WCAG 2.0 AA requirement for a minimum 4.5:1 contrast. This fixes that with a darker version of the same red.

#ff4500 has luminosity contrast of 3.4:1. Need at least 4.5:1. Use #dc3b00.
#DC3B00 provides contrast of 4.5:1 on white. But to provide a little flexibility, e.g. in the case that some <code> is in a <th> with background #eee, a colour of #C83500 provides 4.56:1 contrast, while still standing out as red text.
darobin added a commit that referenced this pull request Jul 3, 2014
More accessible luminosity contrast on colour for <code>
@darobin darobin merged commit 4353e6c into w3c:develop Jul 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants