Skip to content

fix(components): update sidebar trigger size when collapsed to icon-only#11174

Open
saadpocalypse wants to merge 2 commits into
shadcn-ui:mainfrom
saadpocalypse:fix/sidebar-trigger-collapsed-size
Open

fix(components): update sidebar trigger size when collapsed to icon-only#11174
saadpocalypse wants to merge 2 commits into
shadcn-ui:mainfrom
saadpocalypse:fix/sidebar-trigger-collapsed-size

Conversation

@saadpocalypse

Copy link
Copy Markdown

Summary

Fixes an alignment and sizing mismatch where the SidebarTrigger button inside a collapsed (collapsible="icon") sidebar rail rendered at size-7 (28px) instead of matching the size-8 (32px) dimensions applied to other menu buttons (SidebarMenuButton).

Relates to

Fixes #11167

Changes

  • Registry Components:
    • Added group-data-[collapsible=icon]:size-8! to SidebarTrigger within apps/v4/registry/bases/base/ui/sidebar.tsx, bases/radix/ui/sidebar.tsx, and legacy new-york-v4/ui/sidebar.tsx.
  • Generated Outputs:
    • Regenerated all compiled styles and registry JSON outputs (via pnpm registry:build) to correctly build combinations with the updated styling classes.

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@saadpocalypse is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@saadpocalypse
saadpocalypse force-pushed the fix/sidebar-trigger-collapsed-size branch from e01df04 to 0b9825c Compare July 14, 2026 21:47
@saadpocalypse
saadpocalypse force-pushed the fix/sidebar-trigger-collapsed-size branch from 9f12b97 to e66f72d Compare July 16, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: SidebarTrigger is 28px (size-7) while collapsed SidebarMenuButton icons are 32px (size-8)

1 participant