Skip to content

Commit

Permalink
fix(input): input placeholder not being hidden in IE under certain co…
Browse files Browse the repository at this point in the history
…nditions (#4478)

Fixes #4464.
  • Loading branch information
crisbeto authored and kara committed May 11, 2017
1 parent 136f7ff commit fc73a4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ $mat-input-underline-disabled-background-image:
// display: none, because IE ends up preventing the user from
// focusing the input altogether.
@include input-placeholder {
color: transparent;
// Needs to be !important, because the placeholder will end up inheriting the
// input color in IE, if the consumer overrides it with a higher specificity.
color: transparent !important;
}
}

Expand Down

0 comments on commit fc73a4b

Please sign in to comment.