From 60b6bc9e5b486fcd61e484ef31eef4179c3f2ced Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 27 Feb 2025 22:00:13 -0700 Subject: [PATCH] update items --- .../components/ui/sidebar/SidebarCollapsible.tsx | 1 + web/src/components/ui/sidebar/SidebarItem.tsx | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/web/src/components/ui/sidebar/SidebarCollapsible.tsx b/web/src/components/ui/sidebar/SidebarCollapsible.tsx index 3d0c4c909..8da12deb3 100644 --- a/web/src/components/ui/sidebar/SidebarCollapsible.tsx +++ b/web/src/components/ui/sidebar/SidebarCollapsible.tsx @@ -5,6 +5,7 @@ import { CollapsibleTrigger } from '../collapsible/CollapsibleBase'; import { type ISidebarGroup } from './interfaces'; +import { SidebarItem } from './SidebarItem'; export const SidebarGroup: React.FC = React.memo(({ label, items }) => { return <>; diff --git a/web/src/components/ui/sidebar/SidebarItem.tsx b/web/src/components/ui/sidebar/SidebarItem.tsx index b47f10836..502fa4a2a 100644 --- a/web/src/components/ui/sidebar/SidebarItem.tsx +++ b/web/src/components/ui/sidebar/SidebarItem.tsx @@ -28,11 +28,17 @@ const itemVariants = cva( variant: 'default', className: 'bg-nav-item-select hover:bg-nav-item-select' }, + { + active: false, + disabled: true, + variant: 'default', + className: 'text-text-disabled! bg-transparent' + }, { active: true, disabled: false, variant: 'emphasized', - className: 'bg-nav-item-select hover:bg-nav-item-select' + className: 'bg-nav-item-select hover:bg-nav-item-select ' }, { active: false, @@ -56,8 +62,10 @@ export const SidebarItem: React.FC - {icon} - {label} + + {icon} + + {label} ); }