refactor(input): alternative approach to sizing the placeholder (#3025)

Switches to an alternative approach, using `display: inline-table`, to set the size of the `.mat-input-placeholder-wrapper`, because there are reports that the unicode content may end up getting rendered in some browsers.
This commit is contained in:
Kristiyan Kostadinov
2017-02-11 00:18:05 +01:00
committed by tinayuangao
parent 140c95c2e8
commit a02ed5aad7
+2 -1
View File
@@ -173,7 +173,8 @@ $mat-input-underline-disabled-background-image:
// Keeps the element height since the placeholder text is `position: absolute`.
&::after {
content: '\\00a0';
content: '';
display: inline-table;
}
}