Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

fix(input): increase placeholder contrast on focus - #9804

Merged
kara merged 1 commit into
angular:masterfrom
clshortfuse:input-increasePlaceholderContrastOnFocus
Oct 13, 2016
Merged

kara merged 1 commit into
angular:masterfrom
clshortfuse:input-increasePlaceholderContrastOnFocus

Conversation

@clshortfuse

Copy link
Copy Markdown
Contributor

According to Material Design spec and a11y accessibility, a focused
text field should have a secondary text opacity

  • Change input placeholder color from foreground-3 to foreground-2 on focus

Fixes #8903

According to Material Design spec and a11y accessibility, a focused
text field should have a secondary text opacity

* Change input placeholder color from foreground-3 to foreground-2 on focus

Fixes angular#8903
@clshortfuse clshortfuse added a11y This issue is related to accessibility ui: CSS labels Oct 10, 2016
@clshortfuse clshortfuse added the needs: review This PR is waiting on review from the team label Oct 10, 2016
@clshortfuse

clshortfuse commented Oct 10, 2016 •

Copy link
Copy Markdown
Contributor Author

See https://material-design.storage.googleapis.com/publish/material_v_9/0Bzhp5Z4wHba3SjZ2SkgwTERaVkU/components_textfields_single4.png to see that focused elements have darker placeholder text

State Contrast Before After
Idle 2.7 screenshot 2016-10-10 at 2 43 16 pm screenshot 2016-10-10 at 2 46 22 pm
Focused 2.7 / 4.6 screenshot 2016-10-10 at 2 45 10 pm screenshot 2016-10-10 at 2 46 49 pm
Content 16.6 screenshot 2016-10-10 at 2 45 49 pm screenshot 2016-10-10 at 2 47 13 pm

Contrast levels should be at least 4.5 for focused elements and this change will push the placeholder up from 2.7 to 4.6

@topherfangio topherfangio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ThomasBurleson ThomasBurleson added needs: presubmit and removed needs: review This PR is waiting on review from the team labels Oct 10, 2016
@kara kara added pr: merge ready This PR is ready for a caretaker to review and removed needs: presubmit labels Oct 13, 2016
@kara
kara merged commit 974acd3 into angular:master Oct 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a11y This issue is related to accessibility pr: merge ready This PR is ready for a caretaker to review ui: CSS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants