From 6af67b96f601f10b730358a4c75fcc57cea41b21 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Fri, 2 Oct 2026 17:22:04 +1000 Subject: [PATCH] tone down sidebar demo icons and clip preview corners --- .../example/sidebar-collapsible-icon.tsx | 72 ++++++++++--------- .../registry/default/example/sidebar-demo.tsx | 65 +++++++++-------- .../ui/src/components/shadcn/ui/sidebar.tsx | 2 +- 3 files changed, 77 insertions(+), 62 deletions(-) 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 )