Skip to content

Commit 81cfea7

Browse files
authored
apply background to search box, not its children (#210)
1 parent c345928 commit 81cfea7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
279279
.search-box {
280280
--padding: 1rem;
281281
--background: var(--sk-back-2);
282+
background: var(--background);
282283
position: relative;
283284
height: calc(100% - 2rem);
284285
width: calc(100vw - 2rem);
@@ -358,7 +359,6 @@ It appears when the user clicks on the `Search` component or presses the corresp
358359
}
359360
360361
.results-container {
361-
background: var(--background);
362362
border-radius: 0 0 var(--sk-border-radius) var(--sk-border-radius);
363363
pointer-events: all;
364364
}
@@ -369,7 +369,6 @@ It appears when the user clicks on the `Search` component or presses the corresp
369369
font-size: 1.2rem;
370370
font-weight: normal;
371371
text-transform: uppercase;
372-
background-color: var(--background);
373372
pointer-events: all;
374373
}
375374

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
position: sticky;
7878
top: 0;
7979
display: block;
80-
background: var(--background);
8180
color: var(--sk-text-4);
8281
text-transform: uppercase;
8382
padding: 0.5rem var(--padding);

0 commit comments

Comments
 (0)