Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 974acd3

Browse files
clshortfusekara
authored andcommitted
fix(input): increase placeholder contrast on focus (#9804)
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
1 parent 6a0d592 commit 974acd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/input/input-theme.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ md-input-container.md-THEME_NAME-theme {
2929
}
3030
}
3131

32+
&.md-input-focused {
33+
.md-input {
34+
@include input-placeholder-color('\'{{foreground-2}}\'');
35+
}
36+
}
37+
3238
&:not(.md-input-invalid) {
3339
&.md-input-has-value {
3440
label {

0 commit comments

Comments
 (0)