Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(toggle-group): preserve segmented zero spacing#10721

Open
puneetdixit200 wants to merge 1 commit into
shadcn-ui:mainfrom
puneetdixit200:fix-toggle-group-spacing
Open

fix(toggle-group): preserve segmented zero spacing#10721
puneetdixit200 wants to merge 1 commit into
shadcn-ui:mainfrom
puneetdixit200:fix-toggle-group-spacing

Conversation

@puneetdixit200
Copy link
Copy Markdown

Fixes #10717.

Summary

  • convert the ToggleGroup spacing variable into a Tailwind v4-compatible CSS length and use gap-(--gap)
  • keep spacing-controlled segmented outline groups visually joined by making zero-spacing border, radius, and shadow overrides win over base toggle classes
  • apply the same behavior across the registry source, base/radix variants, RTL variants, and generated registry payloads

Checks

  • pnpm registry:build
  • pnpm --filter=v4 registry:build
  • pnpm --filter=v4 validate:registries
  • pnpm --filter=v4 lint
  • prettier --check on the changed toggle-group files
  • git diff --check
  • pnpm --filter=v4 typecheck currently still fails on existing docs source generation types (@/.source and PageData fields), with no toggle-group errors after this change

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 21, 2026

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

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

Can you sign the commits please? See https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits. Thank you.

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]: ToggleGroup outline + spacing=0 renders separated items in Tailwind v4

1 participant