Bug 1966080 - Fix clear icon fill in search-textbox. r=emilio,desktop-theme-reviewers

By setting the -moz-context-properties: fill on the
.textbox-search-clear class, we ensure the the clear icon updates its
fill correctly when switching between light and dark themes.

Differential Revision: https://phabricator.services.mozilla.com/D249135
This commit is contained in:
Tim Giles
2025-05-15 18:13:25 +00:00
committed by tgiles@mozilla.com
parent 622ae20940
commit 73c6bcf33e

View File

@@ -82,6 +82,8 @@ input {
.textbox-search-clear { .textbox-search-clear {
list-style-image: url(resource://content-accessible/close-12.svg); list-style-image: url(resource://content-accessible/close-12.svg);
-moz-context-properties: fill;
fill: currentColor;
} }
.textbox-search-icon:not([disabled]) { .textbox-search-icon:not([disabled]) {