Skip to content

Commit

Permalink
fix(input): placeholder not rendering in Chrome under certain conditi…
Browse files Browse the repository at this point in the history
…ons (#4405)
  • Loading branch information
crisbeto authored and kara committed May 9, 2017
1 parent ea8241a commit 5e349d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $mat-input-underline-disabled-background-image:
// Applies a floating placeholder above the input itself.
@mixin mat-input-placeholder-floating {
display: block;
transform: translateY(-1.35em) scale($mat-input-floating-placeholder-scale-factor);
transform: translate3d(0, -1.35em, 0) scale($mat-input-floating-placeholder-scale-factor);
width: 100% / $mat-input-floating-placeholder-scale-factor;
}

Expand Down Expand Up @@ -143,7 +143,7 @@ $mat-input-underline-disabled-background-image:
text-overflow: ellipsis;
overflow: hidden;

transform: translateY(0);
transform: translate3d(0, 0, 0);
transform-origin: bottom left;
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function,
color $swift-ease-out-duration $swift-ease-out-timing-function,
Expand Down

0 comments on commit 5e349d9

Please sign in to comment.