From 86aaacd32c02ee533a5506723ac7dbd77faf8fd3 Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Fri, 8 Sep 2023 20:03:01 -0700 Subject: [PATCH] fix(textfield): remove icon that appears in search input in chrome and safari PiperOrigin-RevId: 563914174 --- textfield/internal/_input.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/textfield/internal/_input.scss b/textfield/internal/_input.scss index cefabe277e..4caf48eb18 100644 --- a/textfield/internal/_input.scss +++ b/textfield/internal/_input.scss @@ -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 }