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:
Kristiyan Kostadinov
2017-03-13 22:15:38 +01:00
committed by mmalerba
parent 932b4a0767
commit f8cdd9243c
+1
View File
@@ -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 {