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

fix(material-experimental/mdc-form-field): fix fill appearance contra… #21365

Merged
merged 1 commit into from Jan 6, 2021

Conversation

annieyw
Copy link
Contributor

@annieyw annieyw commented Dec 15, 2020

…st ratio

Previous contrast ratio for fill appearance form field when focused with placeholder text was 4.25 which fails 4.5:1 text contrast ratio.

This is because we use an overlay instead of a ripple (like mdc) for focus and hover indication.
Decreasing the overlay opacity for the focus state did not work because the ratio did not go over 4.5:1 until it was the same opacity as the hover state.
Now the placeholder text is the same color as label text which is on spec and passes contrast ratio in focus state.

In the long run the mat ripple component should be reconciled with the mdc ripple and replace this overlay div.

@annieyw annieyw added Accessibility This issue is related to accessibility (a11y) G This is is related to a Google internal issue labels Dec 15, 2020
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 15, 2020
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Dec 17, 2020
@annieyw annieyw merged commit 27e60e8 into angular:master Jan 6, 2021
annieyw added a commit that referenced this pull request Jan 6, 2021
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Jan 14, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement G This is is related to a Google internal issue target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants