diff --git a/src/theme/search.css b/src/theme/search.css index cd1e2e8cb3..c5aeec74f8 100644 --- a/src/theme/search.css +++ b/src/theme/search.css @@ -7,10 +7,19 @@ padding: 1rem; width: 200px; gap: 1rem; + --docsearch-searchbox-shadow: transparent; + --docsearch-searchbox-focus-background: transparent; } .DocSearch-Button:hover { - background: none; + background: var(--chakra-colors-primary); +} + +.DocSearch-Button:hover svg path, +.DocSearch-Button:hover kbd, +.DocSearch-Button:hover span { + color: var(--chakra-colors-bg); + border-color: var(--chakra-colors-bg); } .DocSearch-Button-Container { @@ -149,10 +158,6 @@ svg[aria-label="Algolia"] * { padding: 2rem 1rem; } - .DocSearch-Button:active, .DocSearch-Button:focus, .DocSearch-Button:hover { - background: var(--chakra-colors-primary); - } - .DocSearch-Search-Icon * { color: var(--chakra-colors-bg); }