Skip to content

feat(switch): add sizes and compact switches in tables - #56

Merged
sdcorejs merged 1 commit into
mainfrom
codex/switch-sizes
Sep 11, 2026
Merged

feat(switch): add sizes and compact switches in tables#56
sdcorejs merged 1 commit into
mainfrom
codex/switch-sizes

Conversation

@sdcorejs

Copy link
Copy Markdown
Owner

Adds size="sm | md | lg" to sd-switch, with md as the default. Tracks measure 36×20px, 52×32px and 60×36px respectively, with matching handles, icons and focus layers. Switches rendered inside sd-table, including consumer cell templates, always use the compact sm appearance.

  • Preserve model binding, validators, disabled/viewed behavior and form registration when sizing changes.
  • Retain a minimum 44px control height on touch devices.
  • Add rendered-dimension and interaction regressions, including RTL/hidden icons and projected table cells.
  • Update switch/table docs, changelog and two Showcase examples; synchronize canonical v19 to v20/v21/v22.

Validation:

  • Full v19 suite: 5,379 tests passed.
  • Switch/table suite on v22: 35 tests passed.
  • Scoped lint, repository script tests, four-version sync and diff checks passed.
  • v19 library and Showcase builds passed.
  • Browser checks at desktop and 390px width confirmed all three sizes, compact table switches and toggling.

Add sm, md and lg switch sizes with md as the default. Scale tracks, handles, icons and focus layers together; switches rendered inside sd-table use the sm appearance, including consumer templates.

Update component docs, changelog and Showcase examples, and synchronize v19 through v22. Verified 5379 v19 tests, 35 focused v22 tests, scoped lint, script and sync checks, library and Showcase builds, plus desktop and narrow-screen browser checks.
@sdcorejs
sdcorejs merged commit 034f06f into main Sep 11, 2026
6 checks passed
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.

2 participants