Opening this in favor of #3227429: Olivero: Autocomplete icon doesn't have proper contrast in high contrast mode.
The autocomplete form widget's icon doesn't always meet contrast recommendations to meet WCAG standards.
In high contrast mode the icon doesn't change color. This can be a problem because we don't know if the user has a light theme or dark theme.
I tested out Olivero, Bartik, and Claro. The problem occurs within all of the themes and should be fixed within the module CSS.
Olivero:

Claro:

Bartik:

| Comment | File | Size | Author |
|---|---|---|---|
| olivero.png | 51.48 KB | mherchel | |
| claro.png | 21.99 KB | mherchel | |
| bartik.png | 28.35 KB | mherchel |
Comments
Comment #2
mherchelNot quite sure the best way to tackle this one:
1) We could easily add a white background to the icon. This would pass contrast, but not look good.
2) Firefox does not properly support
(forced-colors: active) and (prefers-color-scheme)3)
-ms-high-contrastis problematic because of custom color schemes4) We can't use CSS shapes if we add it as a background image.
Thoughts?