Skip to content

Commit

Permalink
apply background to search box, not its children (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Oct 2, 2024
1 parent c345928 commit 81cfea7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions packages/site-kit/src/lib/search/SearchBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
.search-box {
--padding: 1rem;
--background: var(--sk-back-2);
background: var(--background);
position: relative;
height: calc(100% - 2rem);
width: calc(100vw - 2rem);
Expand Down Expand Up @@ -358,7 +359,6 @@ It appears when the user clicks on the `Search` component or presses the corresp
}
.results-container {
background: var(--background);
border-radius: 0 0 var(--sk-border-radius) var(--sk-border-radius);
pointer-events: all;
}
Expand All @@ -369,7 +369,6 @@ It appears when the user clicks on the `Search` component or presses the corresp
font-size: 1.2rem;
font-weight: normal;
text-transform: uppercase;
background-color: var(--background);
pointer-events: all;
}
Expand Down
1 change: 0 additions & 1 deletion packages/site-kit/src/lib/search/SearchResultList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
position: sticky;
top: 0;
display: block;
background: var(--background);
color: var(--sk-text-4);
text-transform: uppercase;
padding: 0.5rem var(--padding);
Expand Down

0 comments on commit 81cfea7

Please sign in to comment.