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

color contrast - placeholder #6

Open
weboverhauls opened this issue Dec 13, 2016 · 1 comment
Open

color contrast - placeholder #6

weboverhauls opened this issue Dec 13, 2016 · 1 comment

Comments

@weboverhauls
Copy link

The placeholder text should pass WCAG color contrast requirements (accessibility), especially since it's a required format.

The pink (#ffc2cd) fails color contrast with a ratio of Contrast Ratio: 1.52:1; the requirement is 4.5:1.

Suggest #e9002b which is more reddish but has a passing ratio of 4.67:1.

Reference: https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html

@weboverhauls
Copy link
Author

Note: browsers' default placeholder does not pass WCAG AA requirements either. One must use CSS (extensions) to correct, but then the text may appear as the value (entered content), thus the paradox of usable/accessible placeholders.

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

No branches or pull requests

1 participant