From 9684e7bf3080fb086aa0b148ec7ad9bb01a49938 Mon Sep 17 00:00:00 2001 From: dotta Date: Mon, 30 Mar 2026 06:40:08 -0500 Subject: [PATCH] Add dark mode inbox selection color Co-Authored-By: Paperclip --- ui/src/components/SwipeToArchive.test.tsx | 5 ++++- ui/src/components/SwipeToArchive.tsx | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/src/components/SwipeToArchive.test.tsx b/ui/src/components/SwipeToArchive.test.tsx index 4cdf92db..8a3c07f3 100644 --- a/ui/src/components/SwipeToArchive.test.tsx +++ b/ui/src/components/SwipeToArchive.test.tsx @@ -136,7 +136,10 @@ describe("SwipeToArchive", () => { const surface = container.querySelector("[data-inbox-row-surface]") as HTMLDivElement | null; expect(surface).not.toBeNull(); - expect(surface?.style.backgroundColor).toBe("hsl(var(--muted))"); + expect(surface?.className).toContain("bg-zinc-100"); + expect(surface?.className).toContain("dark:bg-zinc-800"); + expect(surface?.className).not.toContain("bg-card"); + expect(surface?.style.backgroundColor).toBe(""); expect(surface?.style.boxShadow).toBe(""); act(() => { diff --git a/ui/src/components/SwipeToArchive.tsx b/ui/src/components/SwipeToArchive.tsx index acd1d467..639179c3 100644 --- a/ui/src/components/SwipeToArchive.tsx +++ b/ui/src/components/SwipeToArchive.tsx @@ -13,7 +13,6 @@ interface SwipeToArchiveProps { const COMMIT_THRESHOLD = 0.32; const MAX_SWIPE = 0.88; const COMMIT_DELAY_MS = 140; -const SELECTED_ROW_BACKGROUND = "hsl(var(--muted))"; export function SwipeToArchive({ children, @@ -152,11 +151,13 @@ export function SwipeToArchive({
{children}