From 57357991e4501c55f0a48b5f1910279f8c6a6e18 Mon Sep 17 00:00:00 2001 From: dotta Date: Sat, 28 Mar 2026 19:09:53 -0500 Subject: [PATCH] Set inbox selection to fixed light gray Co-Authored-By: Paperclip --- ui/src/components/SwipeToArchive.test.tsx | 2 +- ui/src/components/SwipeToArchive.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/components/SwipeToArchive.test.tsx b/ui/src/components/SwipeToArchive.test.tsx index 4cdf92db..4d1c8f86 100644 --- a/ui/src/components/SwipeToArchive.test.tsx +++ b/ui/src/components/SwipeToArchive.test.tsx @@ -136,7 +136,7 @@ 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?.style.backgroundColor).toBe("rgb(243, 244, 246)"); expect(surface?.style.boxShadow).toBe(""); act(() => { diff --git a/ui/src/components/SwipeToArchive.tsx b/ui/src/components/SwipeToArchive.tsx index 4b0f304c..5bddcab8 100644 --- a/ui/src/components/SwipeToArchive.tsx +++ b/ui/src/components/SwipeToArchive.tsx @@ -13,6 +13,7 @@ interface SwipeToArchiveProps { const COMMIT_THRESHOLD = 0.32; const MAX_SWIPE = 0.88; const COMMIT_DELAY_MS = 140; +const SELECTED_ROW_BACKGROUND = "#f3f4f6"; export function SwipeToArchive({ children, @@ -155,7 +156,7 @@ export function SwipeToArchive({ style={{ transform: `translate3d(${offsetX}px, 0, 0)`, transition: isDragging ? "none" : "transform 180ms ease-out", - backgroundColor: selected ? "hsl(var(--muted))" : undefined, + backgroundColor: selected ? SELECTED_ROW_BACKGROUND : undefined, }} > {children}