From f573969428cabe60172c96f6902b3b6a807b0f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 20 Oct 2026 17:37:17 +0200 Subject: [PATCH] fix(ui): give unchosen segments the tab trigger's readable dark tone The muted foreground on the muted track reads 3.6:1 in the dark theme, below WCAG AA. Tabs already solved this with the tab-inactive token; Segmented now uses the same treatment, so both controls look alike. --- src/components/ui/segmented.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/segmented.tsx b/src/components/ui/segmented.tsx index bd19683e0..cb4910f7a 100644 --- a/src/components/ui/segmented.tsx +++ b/src/components/ui/segmented.tsx @@ -142,7 +142,7 @@ export function Segmented({ stretch && "flex-1", checked ? "bg-background text-foreground shadow-sm" - : "text-muted-foreground hover:text-foreground", + : "text-foreground/75 hover:text-foreground dark:text-tab-inactive dark:hover:text-foreground", )} > {Icon ? (