Skip to content

Commit 6652667

Browse files
willshowellmmalerba
authored andcommitted
style(form-field): use easing function for underline (#7090)
1 parent 1d19b3c commit 6652667

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/form-field/form-field.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ $mat-form-field-default-infix-width: 180px !default;
176176
transform-origin: 50%;
177177
transform: scaleX(0.5);
178178
visibility: hidden;
179+
opacity: 0;
179180
transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function;
180181

181182
.mat-form-field-invalid:not(.mat-focused) & {
@@ -185,9 +186,11 @@ $mat-form-field-default-infix-width: 180px !default;
185186
.mat-focused &,
186187
.mat-form-field-invalid & {
187188
visibility: visible;
189+
opacity: 1;
188190
transform: scaleX(1);
189-
transition: transform 150ms linear,
190-
background-color $swift-ease-in-duration $swift-ease-in-timing-function;
191+
transition: transform 300ms $swift-ease-out-timing-function,
192+
opacity 100ms $swift-ease-out-timing-function,
193+
background-color 300ms $swift-ease-out-timing-function;
191194
}
192195
}
193196
}

0 commit comments

Comments
 (0)