From 1d840ed549a1925fc87dc0066e6dd0e2251f075d Mon Sep 17 00:00:00 2001 From: Carlos Lopez Jr Date: Mon, 10 Oct 2016 13:07:42 -0400 Subject: [PATCH] fix(input): increase placeholder contrast on focus According to Material Design spec and a11y accessibility, a focused text field should have a secondary text opacity * Change input placeholder color from foreground-3 to foreground-2 on focus Fixes #8903 --- src/components/input/input-theme.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/input/input-theme.scss b/src/components/input/input-theme.scss index f07dde3ca0..539d96d68a 100644 --- a/src/components/input/input-theme.scss +++ b/src/components/input/input-theme.scss @@ -29,6 +29,12 @@ md-input-container.md-THEME_NAME-theme { } } + &.md-input-focused { + .md-input { + @include input-placeholder-color('\'{{foreground-2}}\''); + } + } + &:not(.md-input-invalid) { &.md-input-has-value { label {