File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 74
74
color : $input-underline-color-warn ;
75
75
}
76
76
77
- .mat-input-underline {
78
- border-color : $input-underline-color-warn ;
79
- }
80
-
81
77
.mat-input-ripple {
82
78
background-color : $input-underline-color-warn ;
83
79
}
Original file line number Diff line number Diff line change @@ -217,12 +217,17 @@ $mat-input-underline-disabled-background-image:
217
217
z-index : 1 ;
218
218
top : -1px ;
219
219
width : 100% ;
220
- transform-origin : top ;
221
- opacity : 0 ;
222
- transition : opacity $swift-ease-out-duration $swift-ease-out-timing-function ;
223
-
224
- .mat-focused & {
225
- opacity : 1 ;
220
+ transform-origin : 50% ;
221
+ transform : scaleX (0.5 );
222
+ visibility : hidden ;
223
+ transition : background-color $swift-ease-in-duration $swift-ease-in-timing-function ;
224
+
225
+ .mat-focused & ,
226
+ .mat-input-invalid & {
227
+ visibility : visible ;
228
+ transform : scaleX (1 );
229
+ transition : transform 150ms linear ,
230
+ background-color $swift-ease-in-duration $swift-ease-in-timing-function ;
226
231
}
227
232
}
228
233
}
You can’t perform that action at this time.
0 commit comments