Skip to content

Commit 3b16648

Browse files
mmalerbakara
authored andcommitted
fix(input): vendor-prefix ::placeholder (#2547)
1 parent f4f69c4 commit 3b16648

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/lib/input/input-container.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,19 @@ md-input-container {
1515
}
1616

1717
.md-input-element {
18+
// Note that we can't use something like visibility: hidden or
19+
// display: none, because IE ends up preventing the user from
20+
// focusing the input altogether.
1821
&::placeholder {
19-
// Note that we can't use something like visibility: hidden or
20-
// display: none, because IE ends up preventing the user from
21-
// focusing the input altogether.
22+
color: transparent;
23+
}
24+
&::-moz-placeholder {
25+
color: transparent;
26+
}
27+
&::-webkit-input-placeholder {
28+
color: transparent;
29+
}
30+
&:-ms-input-placeholder {
2231
color: transparent;
2332
}
2433

0 commit comments

Comments
 (0)