Skip to content

Commit

Permalink
add high contrast to findbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bmFtZQ authored Apr 12, 2021
1 parent b2e9c0d commit 09067c6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions chrome/extras/accessibility.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* High Contrast Theme */
@media (prefers-contrast) {
:root, :root #navigator-toolbox {
:root, :root #navigator-toolbox, findbar {
--highContrastTheme-border-color: #777 !important;
--highContrastTheme-urlbar-border-color: #000a;

Expand All @@ -21,7 +21,7 @@
--panelview-toolbarbutton-active-color: var(--highContrastTheme-menuitem-selected-color) !important;
}

:root[lwthemetextcolor="bright"], :root[lwthemetextcolor="bright"] #navigator-toolbox {
:root[lwthemetextcolor="bright"], :root[lwthemetextcolor="bright"] #navigator-toolbox, :root[lwthemetextcolor="bright"] findbar {
--highContrastTheme-border-color: #999 !important;
--highContrastTheme-urlbar-border-color: #fffa;

Expand Down Expand Up @@ -67,10 +67,10 @@
color: var(--highContrastTheme-menuitem-selected-color) !important;
}

#urlbar, #searchbar {
#urlbar, #searchbar, hbox[anonid="findbar-textbox-wrapper"] {
box-shadow: 0 0 0 1px var(--highContrastTheme-urlbar-border-color) inset !important;
}
#urlbar:hover, #searchbar:hover {
#urlbar:hover, #searchbar:hover, hbox[anonid="findbar-textbox-wrapper"]:hover:not(:focus-within) {
box-shadow: 0 0 0 1px var(--highContrastTheme-urlbar-border-color) inset, 0 0 0 1px var(--highContrastTheme-urlbar-border-color) inset !important;
}
#urlbar[open], #searchbar[open] {
Expand Down Expand Up @@ -164,7 +164,9 @@
#pageAction-urlbar-emailLink,
#pageAction-urlbar-copyURL,
#pageAction-urlbar-shareURL,
#pageAction-urlbar-addSearchEngine)
#pageAction-urlbar-addSearchEngine),
hbox[anonid="findbar-textbox-wrapper"] toolbarbutton,
hbox[anonid="findbar-textbox-wrapper"]
{
transition-duration: 0s, 0s, 0s, 0s, 0s !important;
}
Expand Down

0 comments on commit 09067c6

Please sign in to comment.