Skip to content

Commit a02ed5a

Browse files
crisbetotinayuangao
authored andcommitted
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.
1 parent 140c95c commit a02ed5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/input/input-container.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ $mat-input-underline-disabled-background-image:
173173

174174
// Keeps the element height since the placeholder text is `position: absolute`.
175175
&::after {
176-
content: '\\00a0';
176+
content: '';
177+
display: inline-table;
177178
}
178179
}
179180

0 commit comments

Comments
 (0)