Commit 605c7f55 authored by My Nguyen's avatar My Nguyen Committed by Commit Bot

[CrSearchField] Fix missing clear icon

https://crrev.com/c/2436969 introduces variable for clear search icon
fill color, using inherit does not work because
--cr-icon-button-fill-color is a variable in cr_icon_button.
Specify it directly instead.

Bug: 1134044
Change-Id: I48ae7bd0a28d8d1505b50759421308feeec2442e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2440729
Commit-Queue: My Nguyen <myy@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812981}
parent f80f8958
......@@ -14,6 +14,7 @@
:host {
display: flex;
user-select: none;
--cr-search-field-clear-icon-fill: var(--google-grey-refresh-700);
--cr-search-field-input-border-bottom: 1px solid var(--cr-secondary-text-color);
}
......@@ -56,8 +57,8 @@
}
#clearSearch {
--cr-icon-button-fill-color: var(--cr-search-field-clear-icon-fill);
/* A 16px icon that fits on the input line. */
--cr-icon-button-fill-color: var(--cr-search-field-clear-icon-fill, inherit);
--cr-icon-button-icon-size: var(--cr-search-field-clear-icon-size, 16px);
--cr-icon-button-size: 24px;
margin-inline-end: var(--cr-search-field-clear-icon-margin-end, -4px);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment