From 1c5064e2b8fe48b1646ba2f62e16757a41ed539f Mon Sep 17 00:00:00 2001 From: crisbeto Date: Fri, 10 Feb 2017 06:10:36 +0100 Subject: [PATCH] refactor(input): alternative approach to sizing the placeholder 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 a266bfd3297e..723f370cff32 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; } }