Skip to content

fix(form-field): fix wrong underline color in error state #11447

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

Merged
merged 2 commits into from
Jun 7, 2018
Merged

fix(form-field): fix wrong underline color in error state #11447

merged 2 commits into from
Jun 7, 2018

Conversation

danmana
Copy link
Contributor

@danmana danmana commented May 22, 2018

Fix wrong color of the form-field undeline when using color=accent and the field is in an invalid state and focused.
Previously when a form-field using the accent color had an error it would show on focus the accent color instead of the warn color.
All other visual elements of the form-field (borders, labels etc) use the warn color in this state.

Closes #11436

Fix wrong color of the form-field undeline when using color=accent and the field is in an invalid state and focused.
Previously when a form-field using the accent color had an error it would show on focus the accent color instead of the warn color.
All other visual elements of the form-field (borders, labels etc) use the warn color in this state.

Closes #11436
@danmana danmana requested a review from mmalerba as a code owner May 22, 2018 11:26
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 22, 2018
@@ -86,6 +86,10 @@

.mat-form-field-ripple {
background-color: $underline-color-warn;

&.mat-accent {
Copy link
Member

Choose a reason for hiding this comment

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

Can you combine this selector with the one from above? e.g.

.mat-form-field-ripple,
.mat-form-field-ripple.mat-accent {
  background-color: $underline-color-warn;
}

@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels May 30, 2018
@andrewseguin andrewseguin merged commit 3681ddf into angular:master Jun 7, 2018
@danmana danmana deleted the fix-field-underline-color branch June 7, 2018 12:25
andrewseguin pushed a commit that referenced this pull request Jun 8, 2018
* fix(form-field): fix wrong underline color in error state

Fix wrong color of the form-field undeline when using color=accent and the field is in an invalid state and focused.
Previously when a form-field using the accent color had an error it would show on focus the accent color instead of the warn color.
All other visual elements of the form-field (borders, labels etc) use the warn color in this state.

Closes #11436

* refactor
@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 Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong color of underline for mat-form-field in error state
5 participants