mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
tinayuangao
parent
140c95c2e8
commit
a02ed5aad7
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user