Skip to content

Commit 382fb22

Browse files
samjulienBenTaylorDev
authored andcommitted
fix(docs/mobile-sidebar): use opaque sidebar surface instead of 50% white
The drawer aside was set to `bg-white/50 dark:bg-white/[0.01]` with a `backdrop-blur-3xl`. In light mode this rendered as a 50%-transparent white panel over the page underneath, which made every item read "grayed-out" through the blur. In dark mode the 0.01 white was so faint that the panel was effectively transparent. Switch to `bg-sidebar` — the opaque sidebar token already used by the desktop navbar — and drop the backdrop blur (pointless without the transparency). Items now sit on a solid surface with normal contrast in both themes.
1 parent 8492593 commit 382fb22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/components/layout/mobile-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const MobileSidebar = ({
221221
>
222222
<OpenedFoldersProvider>
223223
<aside
224-
className={`flex flex-col w-full max-w-[280px] h-[calc(100vh-8px)] border backdrop-blur-3xl border-r-0 border-border bg-white/50 dark:bg-white/[0.01] rounded-2xl pl-3 pr-1 transition-transform duration-300 ease-out ${
224+
className={`flex flex-col w-full max-w-[280px] h-[calc(100vh-8px)] border border-r-0 border-border bg-sidebar rounded-2xl pl-3 pr-1 transition-transform duration-300 ease-out ${
225225
isVisible ? "translate-x-0" : "translate-x-full"
226226
}`}
227227
>

0 commit comments

Comments
 (0)