diff --git a/apps/design-system/registry/default/example/sidebar-collapsible-icon.tsx b/apps/design-system/registry/default/example/sidebar-collapsible-icon.tsx index 4dd6b31c6a6..599b3b478e8 100644 --- a/apps/design-system/registry/default/example/sidebar-collapsible-icon.tsx +++ b/apps/design-system/registry/default/example/sidebar-collapsible-icon.tsx @@ -24,40 +24,46 @@ const items = [ { title: 'Settings', url: '#', icon: Settings }, ] +const menuButtonClassName = + '[&>svg]:size-4 text-foreground-muted data-[active=true]:text-foreground' + export default function SidebarCollapsibleIcon() { return ( - - - - - Application - - - {items.map((item) => ( - - - - - {item.title} - - - - ))} - - - - - - - -
- -
-
-
+
+ + + + + Application + + + {items.map((item) => ( + + + + + {item.title} + + + + ))} + + + + + + + +
+ +
+
+
+
) } diff --git a/apps/design-system/registry/default/example/sidebar-demo.tsx b/apps/design-system/registry/default/example/sidebar-demo.tsx index 2af2b059404..437c8367cda 100644 --- a/apps/design-system/registry/default/example/sidebar-demo.tsx +++ b/apps/design-system/registry/default/example/sidebar-demo.tsx @@ -23,35 +23,44 @@ const items = [ { title: 'Settings', url: '#', icon: Settings }, ] +const menuButtonClassName = + '[&>svg]:size-4 text-foreground-muted data-[active=true]:text-foreground' + export default function SidebarDemo() { return ( - - - - - Application - - - {items.map((item) => ( - - - - - {item.title} - - - - ))} - - - - - - -
- -
-
-
+
+ + + + + Application + + + {items.map((item) => ( + + + + + {item.title} + + + + ))} + + + + + + +
+ +
+
+
+
) } diff --git a/packages/ui/src/components/shadcn/ui/sidebar.tsx b/packages/ui/src/components/shadcn/ui/sidebar.tsx index 24fdc0b08cc..724312aaec2 100644 --- a/packages/ui/src/components/shadcn/ui/sidebar.tsx +++ b/packages/ui/src/components/shadcn/ui/sidebar.tsx @@ -277,7 +277,7 @@ const SidebarTrigger = React.forwardRef< }} {...props} > - + Toggle Sidebar )