Skip to content

Fix hidden Switch label spacing - #587

Merged
czarandy merged 1 commit into
mainfrom
fix/571-switch-hidden-label-gap
Aug 25, 2026
Merged

Fix hidden Switch label spacing#587
czarandy merged 1 commit into
mainfrom
fix/571-switch-hidden-label-gap

Conversation

@czarandy

Copy link
Copy Markdown
Owner

Summary

  • keep screen-reader-only Switch labels out of flex flow when no description is visible
  • ignore spread spacing when there is no visible label content, keeping the row control-sized
  • preserve the existing visible-description layout and accessible label association
  • add default/spread regression coverage and a no-description Storybook example

Validation

  • pnpm test (3,485 tests)
  • pnpm typecheck
  • pnpm lint
  • pnpm format:check
  • pnpm build
  • pnpm build:storybook

Closes #571

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
silver-ui-site Ready Ready Preview Aug 25, 2026 1:50am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
silver-ui Ignored Ignored Preview Aug 25, 2026 1:50am

@czarandy
czarandy merged commit a2081cb into main Aug 25, 2026
4 checks passed
@czarandy
czarandy deleted the fix/571-switch-hidden-label-gap branch August 25, 2026 02:25
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.

Switch: isLabelHidden still reserves the label gap

1 participant