Skip to content

Commit fc73a4b

Browse files
crisbetokara
authored andcommitted
fix(input): input placeholder not being hidden in IE under certain conditions (#4478)
Fixes #4464.
1 parent 136f7ff commit fc73a4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/input/input-container.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ $mat-input-underline-disabled-background-image:
117117
// display: none, because IE ends up preventing the user from
118118
// focusing the input altogether.
119119
@include input-placeholder {
120-
color: transparent;
120+
// Needs to be !important, because the placeholder will end up inheriting the
121+
// input color in IE, if the consumer overrides it with a higher specificity.
122+
color: transparent !important;
121123
}
122124
}
123125

0 commit comments

Comments
 (0)