Skip to content

Commit f1d3cca

Browse files
committed
Fix toolbar backdrop when scrolling down (mobile)
1 parent 01e1a0c commit f1d3cca

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

src/components/shared/Toolbar.tsx

+4-24
Original file line numberDiff line numberDiff line change
@@ -170,29 +170,6 @@ const StyledSection = styled.section`
170170
margin-bottom: 10px;
171171
}
172172
173-
.link-button {
174-
display: block;
175-
font-size: 16px;
176-
padding: 10px;
177-
text-decoration: none;
178-
border-radius: 4px;
179-
cursor: pointer;
180-
background-color: transparent;
181-
border: none;
182-
outline: none;
183-
}
184-
185-
button.link-button.full-width-button {
186-
text-align: left;
187-
}
188-
189-
.primary-button {
190-
min-width: 8em;
191-
&[disabled] {
192-
pointer-events: none;
193-
}
194-
}
195-
196173
&.toolbar-hidden {
197174
opacity: 0;
198175
pointer-events: none;
@@ -504,7 +481,7 @@ export default function Toolbar({
504481
);
505482

506483
return (
507-
<Card asChild={true} size="1">
484+
<Card asChild={true} size="1" variant="ghost">
508485
<StyledSection
509486
className={filteredClassNames}
510487
style={{
@@ -522,6 +499,9 @@ export default function Toolbar({
522499
viewportHeight,
523500
isModal || false,
524501
),
502+
backgroundColor: "var(--card-background-color)",
503+
WebkitBackdropFilter: "var(--backdrop-filter-panel)",
504+
backdropFilter: "var(--backdrop-filter-panel)",
525505
}}
526506
ref={scrollElementRef}
527507
aria-hidden={inert || hidden}

0 commit comments

Comments
 (0)