Commit 942bd431 authored by manuk's avatar manuk Committed by Commit Bot

[chrome://omnibox]: Fix filter color not applying to gray rows.

The previous CL crrev.com/c/1680983 introduced compact rows with
alternating white & gray background colors. Because of CSS selector
specificity, the gray background prevented the filter background
applying.

Change-Id: I277e4e64ec9709c3da9f24f2e01adb59604c1046
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1692210Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#675726}
parent c451ecdd
...@@ -83,13 +83,13 @@ table { ...@@ -83,13 +83,13 @@ table {
white-space: pre-wrap; white-space: pre-wrap;
} }
.body tr.thin:nth-child(even) td { .body tr.thin:nth-child(even) {
background-color: #fafafa; background-color: #fafafa;
} }
.body tr:hover td, .body tr:hover,
/* must explicitly select .thin tr's to override above .thin styling */ /* must explicitly select .thin tr's to override above .thin styling */
.body tr.thin:hover td { .body tr.thin:hover {
background-color: var(--row-hover-color); background-color: var(--row-hover-color);
} }
...@@ -285,10 +285,10 @@ img:not([src]), ...@@ -285,10 +285,10 @@ img:not([src]),
/* filter */ /* filter */
.filtered-highlighted { .body tr.filtered-highlighted:not(:hover) {
background-color: rgb(208, 240, 255); background-color: rgb(208, 240, 255);
} }
.filtered-highlighted-nested { .body tr.filtered-highlighted:not(:hover) td.filtered-highlighted-nested {
background-color: rgb(208, 255, 208); background-color: rgb(208, 255, 208);
} }
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