diff --git a/src/design-system/layout/Sidebar/Sidebar.module.css b/src/design-system/layout/Sidebar/Sidebar.module.css index 66f12f3..12c5bef 100644 --- a/src/design-system/layout/Sidebar/Sidebar.module.css +++ b/src/design-system/layout/Sidebar/Sidebar.module.css @@ -205,15 +205,7 @@ padding: 0 6px 6px; margin-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); -} - -.treeSectionLabel { - padding: 10px 12px 4px; - font-size: 10px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 1px; - color: var(--sidebar-muted); + border-left: 3px solid transparent; } /* Collapsible section toggle */ diff --git a/src/design-system/layout/Sidebar/Sidebar.tsx b/src/design-system/layout/Sidebar/Sidebar.tsx index ee38234..e9e1089 100644 --- a/src/design-system/layout/Sidebar/Sidebar.tsx +++ b/src/design-system/layout/Sidebar/Sidebar.tsx @@ -97,14 +97,14 @@ function SidebarSection({ onClick={() => { // Expand sidebar and open the section onCollapseToggle?.() - if (!open) onToggle() + onToggle() }} role="button" tabIndex={0} onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { onCollapseToggle?.() - if (!open) onToggle() + onToggle() } }} > @@ -124,6 +124,7 @@ function SidebarSection({ > {open ? : } + {icon && {icon}} {label} {open && children}