From fc73a4b008b52b5ce14a482739231dd265730b81 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 12 May 2017 00:16:10 +0200 Subject: [PATCH] fix(input): input placeholder not being hidden in IE under certain conditions (#4478) Fixes #4464. --- src/lib/input/input-container.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/input/input-container.scss b/src/lib/input/input-container.scss index 819f10f7b37d..9afc0c7f0990 100644 --- a/src/lib/input/input-container.scss +++ b/src/lib/input/input-container.scss @@ -117,7 +117,9 @@ $mat-input-underline-disabled-background-image: // display: none, because IE ends up preventing the user from // focusing the input altogether. @include input-placeholder { - color: transparent; + // Needs to be !important, because the placeholder will end up inheriting the + // input color in IE, if the consumer overrides it with a higher specificity. + color: transparent !important; } }