Commit 533807e8 authored by Alex Danilo's avatar Alex Danilo Committed by Commit Bot

Remove search box underline for files-ng

Stops the underline being drawn in the cr-input element by setting the
input focus color to transparent.

Enables the caret to be visible by targeting the input element using the
::part() pseudo-element since the underline and caret are both managed
by '--cr-input-focus-color' for -cr-input elements.

Bug: 992823
Change-Id: I6f86b723c84662ff5923d50433751b74d7e7ab58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2061570
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742485}
parent 4259a615
......@@ -693,16 +693,6 @@ html[dir='rtl'] .dialog-header button.icon-button > files-toggle-ripple {
width: 0;
}
.dialog-header:not(.files-ng) #search-box cr-input {
--cr-input-border-bottom: 1px solid rgba(255, 255, 255, 50%);
--cr-input-placeholder-color: rgba(255, 255, 255, 50%);
}
.dialog-header.files-ng #search-box cr-input {
--cr-input-border-bottom: 1px solid rgba(0, 0, 0, 50%);
--cr-input-placeholder-color: rgba(0, 0, 0, 50%);
}
.dialog-header:not(.files-ng) #search-button > .icon {
background-image: -webkit-image-set(
url(../images/files/ui/search_white.png) 1x,
......@@ -1039,13 +1029,21 @@ body.check-select #search-button {
}
.dialog-header:not(.files-ng) #search-box cr-input {
--cr-input-border-bottom: 1px solid rgba(255, 255, 255, 50%);
--cr-input-color: white;
--cr-input-focus-color: white;
--cr-input-placeholder-color: rgba(255, 255, 255, 50%);
}
.dialog-header.files-ng #search-box cr-input {
--cr-input-border-bottom: transparent;
--cr-input-color: var(--google-grey-800);
--cr-input-focus-color: var(--google-grey-700);
--cr-input-focus-color: transparent;
--cr-input-placeholder-color: rgba(0, 0, 0, 50%);
}
.dialog-header.files-ng #search-box cr-input::part(input) {
caret-color: var(--cr-input-color);
}
body.check-select #search-box {
......
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