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

Extend ContrastChecker with link-color support #24595

Closed
aristath opened this issue Aug 17, 2020 · 0 comments · Fixed by #38100
Closed

Extend ContrastChecker with link-color support #24595

aristath opened this issue Aug 17, 2020 · 0 comments · Fixed by #38100
Assignees
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Type] Enhancement A suggestion for improvement.

Comments

@aristath
Copy link
Member

Came up in #24513 (comment)

Currently ContrastChecker only checks for contrast between background-color and text-color.
With the introduction of link-color controls, we'll need to extend that functionality to link-colors as well.
Links however can be a little more complicated than normal text... Links should have sufficient contrast with the background color - just like normal text, but at the same time, they should have a minimum of 3:1 contrast with surrounding text.

See this article on WCAG and link-colors for more details on what the rules are for links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Type] Enhancement A suggestion for improvement.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants