mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
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.
This commit is contained in:
1 parent
b0e67a8831
commit
f573969428
1 file changed
+1
-1
@@ -142,7 +142,7 @@ export function Segmented<T extends string>({
|
||||
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 ? (
|
||||
|
||||
Reference in new issue
Block a user