Skip to content

Comments

fix(docs): normalize sidebar spacing between BaseUI and Radix implementations (#9668)#9670

Open
ZammadNasir wants to merge 1 commit intoshadcn-ui:mainfrom
ZammadNasir:fix/baseui-sidebar-alignment-9668
Open

fix(docs): normalize sidebar spacing between BaseUI and Radix implementations (#9668)#9670
ZammadNasir wants to merge 1 commit intoshadcn-ui:mainfrom
ZammadNasir:fix/baseui-sidebar-alignment-9668

Conversation

@ZammadNasir
Copy link

Fixes #9668

Summary

The misalignment in the collapsed sidebar was caused by inconsistent spacing between the BaseUI and Radix implementations.

Previously:

  • SidebarGroup applied p-2 padding.
  • BaseUI wrapped TeamSwitcher in SidebarGroup.
  • Radix did not.
  • This resulted in layout differences and misalignment in collapsed mode.

Changes

  • Removed padding from SidebarGroup to keep it purely structural.
  • Moved p-2 spacing to SidebarContent.
  • Applied the same changes to both BaseUI and Radix examples for consistency.

Result

  • Consistent spacing across BaseUI and Radix implementations.
  • Correct alignment in collapsed mode.
  • Clear separation of structural and spacing responsibilities.
  • Future-proofed behavior if SidebarGroup usage changes.

@vercel
Copy link
Contributor

vercel bot commented Feb 18, 2026

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

A member of the Team first needs to authorize it.

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]: (docs) BaseUI Sidebar component alignment issue when collapsed

1 participant