fix(label): only show placeholder with floating label when focused (#22958)

fixes #17571
This commit is contained in:
Brandy Carney
2021-03-01 15:36:29 -05:00
committed by GitHub
parent b83e00934e
commit 9282aa6871
6 changed files with 199 additions and 32 deletions

View File

@ -35,12 +35,10 @@
}
:host-context(.item-has-focus).label-floating,
:host-context(.item-has-placeholder).label-floating,
:host-context(.item-has-value).label-floating {
@include transform(translate3d(0, 0, 0), scale(.82));
}
// iOS Typography
// --------------------------------------------------

View File

@ -39,7 +39,6 @@
}
:host-context(.item-has-focus).label-floating,
:host-context(.item-has-placeholder).label-floating,
:host-context(.item-has-value).label-floating {
@include transform(translateY(50%), scale(.75));
}