Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 176a2f9

Browse files
fix(input): match up all label transitions
- Thx @tjlav5 Fixes #6328. Closes #6400.
1 parent 1a852bc commit 176a2f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/input/input.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ md-input-container {
115115
@include rtl(padding-right, 0, $input-container-padding + 1px);
116116
z-index: 1;
117117
transform: translate3d(0, $input-label-default-offset + 4, 0) scale($input-label-default-scale);
118-
transition: transform $swift-ease-out-timing-function 0.25s;
118+
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function;
119119

120120
@include rtl(transform-origin, left top, right top);
121121
}
@@ -275,8 +275,8 @@ md-input-container {
275275
&.md-input-has-value {
276276
label:not(.md-no-float) {
277277
transform: translate3d(0, $input-label-float-offset, 0) scale($input-label-float-scale);
278-
transition: transform $swift-ease-out-timing-function 0.5s,
279-
width $swift-ease-out-timing-function 0.5s;
278+
transition: transform $swift-ease-out-timing-function $swift-ease-out-duration,
279+
width $swift-ease-out-timing-function $swift-ease-out-duration;
280280
width: calc((100% - #{$input-label-float-width}) / #{$input-label-float-scale});
281281
}
282282
}
@@ -310,7 +310,7 @@ md-input-container {
310310

311311
&.md-icon-float {
312312

313-
transition: margin-top 0.5s $swift-ease-out-timing-function;
313+
transition: margin-top $swift-ease-out-duration $swift-ease-out-timing-function;
314314

315315
> label {
316316
pointer-events: none;

0 commit comments

Comments
 (0)