Skip to content

Commit

Permalink
fix(input): label animation shifting sibling labels (#3568)
Browse files Browse the repository at this point in the history
Prevents the focused animation in inputs from causing sibling inputs to shift slightly.

Fixes #3541.
  • Loading branch information
crisbeto authored and mmalerba committed Mar 13, 2017
1 parent 932b4a0 commit f8cdd92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f8cdd92

Please sign in to comment.