mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input): label animation shifting sibling labels (#3568)
Prevents the focused animation in inputs from causing sibling inputs to shift slightly. Fixes #3541.
This commit is contained in:
committed by
mmalerba
parent
932b4a0767
commit
f8cdd9243c
@@ -178,6 +178,7 @@ $mat-input-underline-disabled-background-image:
|
||||
padding-top: 1em;
|
||||
overflow: hidden;
|
||||
pointer-events: none; // We shouldn't catch mouse events (let them through).
|
||||
transform: translate3d(0, 0, 0); // Prevents the label from shifting after the animation is done.
|
||||
|
||||
// Keeps the element height since the placeholder text is `position: absolute`.
|
||||
&::after {
|
||||
|
||||
Reference in New Issue
Block a user