Skip to content

Commit

Permalink
fix(input): label animation shifting sibling labels
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 angular#3541.
  • Loading branch information
crisbeto committed Mar 12, 2017
1 parent cdb3763 commit d32abd2
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 d32abd2

Please sign in to comment.