Skip to content

Commit f259907

Browse files
committed
fix(aria/combobox): increases autocomplete demo's placeholder text contrast
Fixes a bug in Angular Aria's autocomplete demo example where the input's placeholder text is failing text contrast at 4.4 and does not meet the a11y required 4.5:1 contrast ratio. This provides a color variable to ::placeholder to meet the ratio at 8.89:1. Fixes b/477617379
1 parent 2a13f69 commit f259907

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components-examples/aria/autocomplete/autocomplete.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,7 @@
117117
.example-check-icon {
118118
font-size: 0.9rem;
119119
}
120+
121+
::placeholder {
122+
color: var(--mat-sys-on-surface-variant);
123+
}

0 commit comments

Comments
 (0)