From c2a62a4e0856ca012268fe9f1a4df4fd32344293 Mon Sep 17 00:00:00 2001 From: Oliver Bryan Date: Sat, 7 Feb 2026 21:01:31 +0000 Subject: [PATCH] fixed text colour for tabs --- src/components/ui/tabs.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index a08c4e68..1b00fe7b 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -66,7 +66,7 @@ function TabsTrigger({ data-slot="tabs-trigger" className={cn( "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring", - "text-foreground/60 dark:text-muted-foreground data-[state=active]:text-accent", + "text-foreground/60 dark:text-muted-foreground data-[state=active]:text-accent dark:data-[state=active]:text-accent", "relative inline-flex h-[calc(100%-1px)]", "flex-1 items-center justify-center border border-transparent", "px-2 py-1 text-sm font-medium whitespace-nowrap group-data-[orientation=vertical]/tabs:w-full", @@ -75,7 +75,7 @@ function TabsTrigger({ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "bg-input/30 data-[state=active]:bg-background dark:bg-transparent dark:data-[state=active]:bg-input/30", "dark:data-[state=active]:border-input", - "data-[state=active]:text-accent after:bg-foreground after:absolute after:opacity-0", + "after:bg-foreground after:absolute after:opacity-0", "group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px]", "group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0", "group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 cursor-pointer",