Skip to content

Commit

Permalink
fix(textfield): remove icon that appears in search input in chrome an…
Browse files Browse the repository at this point in the history
…d safari

PiperOrigin-RevId: 563914174
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Sep 9, 2023
1 parent 7b96e2d commit 86aaacd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions textfield/internal/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
display: none;
}

// Remove built-in search icons on Chrome when type='search'
&::-webkit-search-decoration,
&::-webkit-search-cancel-button {
display: none;
}

@media (forced-colors: active) {
background-color: Field; // Remove white background in Firefox HCM
}
Expand Down

0 comments on commit 86aaacd

Please sign in to comment.