From a02ed5aad7cb19288e46d476864909b19d425c1d Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Sat, 11 Feb 2017 00:18:05 +0100 Subject: [PATCH] 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. --- src/lib/input/input-container.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/input/input-container.scss b/src/lib/input/input-container.scss index a266bfd3297..723f370cff3 100644 --- a/src/lib/input/input-container.scss +++ b/src/lib/input/input-container.scss @@ -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; } }