Skip to content

Commit

Permalink
refactor(input): alternative approach to sizing the placeholder (#3025)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto authored and tinayuangao committed Feb 10, 2017
1 parent 140c95c commit a02ed5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a02ed5a

Please sign in to comment.