mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input): thicken underline in error state, add underline animation (#4506)
This commit is contained in:
@@ -74,10 +74,6 @@
|
||||
color: $input-underline-color-warn;
|
||||
}
|
||||
|
||||
.mat-input-underline {
|
||||
border-color: $input-underline-color-warn;
|
||||
}
|
||||
|
||||
.mat-input-ripple {
|
||||
background-color: $input-underline-color-warn;
|
||||
}
|
||||
|
||||
@@ -217,12 +217,17 @@ $mat-input-underline-disabled-background-image:
|
||||
z-index: 1;
|
||||
top: -1px;
|
||||
width: 100%;
|
||||
transform-origin: top;
|
||||
opacity: 0;
|
||||
transition: opacity $swift-ease-out-duration $swift-ease-out-timing-function;
|
||||
transform-origin: 50%;
|
||||
transform: scaleX(0.5);
|
||||
visibility: hidden;
|
||||
transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function;
|
||||
|
||||
.mat-focused & {
|
||||
opacity: 1;
|
||||
.mat-focused &,
|
||||
.mat-input-invalid & {
|
||||
visibility: visible;
|
||||
transform: scaleX(1);
|
||||
transition: transform 150ms linear,
|
||||
background-color $swift-ease-in-duration $swift-ease-in-timing-function;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user