From 654a8af08d195a5e4a6c9ff9ae6ed8f6e57038df Mon Sep 17 00:00:00 2001 From: Jacob Paris Date: Mon, 21 Oct 2024 08:39:03 -0400 Subject: [PATCH] fix(sidebar): only apply text-sidebar-foreground to sidebar The text-sidebar-foreground class was applied to the SidebarProvider, which makes the whole page inherit its font color Of the 3 possible return cases in the Sidebar component, 2 already applied the text-sidebar-foreground and I have added it to the third --- apps/www/registry/default/ui/sidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/registry/default/ui/sidebar.tsx b/apps/www/registry/default/ui/sidebar.tsx index 254c3b250d..8fdbb35c22 100644 --- a/apps/www/registry/default/ui/sidebar.tsx +++ b/apps/www/registry/default/ui/sidebar.tsx @@ -142,7 +142,7 @@ const SidebarProvider = React.forwardRef< } as React.CSSProperties } className={cn( - "group/sidebar-wrapper flex min-h-svh w-full text-sidebar-foreground has-[[data-variant=inset]]:bg-sidebar", + "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", className )} ref={ref} @@ -216,7 +216,7 @@ const Sidebar = React.forwardRef< return (