Skip to content

Commit d8fb13c

Browse files
committed
fix hovers
1 parent 6089637 commit d8fb13c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

packages/site-kit/src/lib/search/SearchBox.svelte

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
329329
flex-shrink: 0;
330330
color: var(--sk-text-1);
331331
border-bottom: 1px solid var(--sk-back-6);
332+
background: inherit;
332333
333334
&::selection {
334335
background-color: var(--sk-back-translucent);
@@ -404,15 +405,16 @@ It appears when the user clicks on the `Search` component or presses the corresp
404405
pointer-events: all;
405406
background: var(--background);
406407
407-
ul {
408-
padding: 0 var(--padding);
409-
}
410-
411408
li {
412409
position: relative;
413410
display: flex;
411+
padding: 0.2rem var(--padding);
414412
gap: 1rem;
415413
414+
&:hover {
415+
background: var(--sk-back-3);
416+
}
417+
416418
a {
417419
color: var(--sk-text-2);
418420
display: block;
@@ -421,10 +423,6 @@ It appears when the user clicks on the `Search` component or presses the corresp
421423
padding: 0.5rem;
422424
flex: 1;
423425
424-
&:hover {
425-
background: rgba(0, 0, 0, 0.05);
426-
}
427-
428426
&:focus {
429427
outline-offset: -3px;
430428
}
@@ -434,6 +432,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
434432
width: 3.2rem;
435433
height: 3.2rem;
436434
color: var(--sk-text-4);
435+
background-color: var(--sk-back-2);
437436
438437
&:hover {
439438
outline: none;

packages/site-kit/src/lib/search/SearchResultList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
}
150150
151151
&:hover {
152-
--background: var(--sk-back-4);
152+
--background: var(--sk-back-3);
153153
text-decoration: none;
154154
}
155155

0 commit comments

Comments
 (0)