Skip to content

Fix checkbox shape — square box via a new radius_xs token#3

Merged
kakarot-dev merged 1 commit into
masterfrom
fix/checkbox-square
May 22, 2026
Merged

Fix checkbox shape — square box via a new radius_xs token#3
kakarot-dev merged 1 commit into
masterfrom
fix/checkbox-square

Conversation

@kakarot-dev

Copy link
Copy Markdown
Contributor

What

checkbox painted its 18px box with radius_sm (7px), which reads as a circle, not a checkbox. Adds a radius_xs token (4px) + rounding_xs() helper; the checkbox box now uses it and renders as a proper square.

Why

Caught visually while building the Tokito Settings dialog (VtronTokito/tokito#26) — see the General-section screenshot. radius_xs is a reusable token for any tight control where radius_sm over-rounds.

Tokens is #[non_exhaustive], so the new field is non-breaking.

Verified

  • cargo clippy --lib --all-features — clean

🤖 Generated with Claude Code

checkbox painted its 18px box with radius_sm (7px), which reads as a
circle rather than a checkbox. Add a radius_xs token (4px) + rounding_xs()
helper and use it for the checkbox box, so it renders as a proper square.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kakarot-dev kakarot-dev merged commit e577fa0 into master May 22, 2026
1 check failed
@kakarot-dev kakarot-dev deleted the fix/checkbox-square branch May 22, 2026 02:02
kakarot-dev added a commit that referenced this pull request May 22, 2026
The CI 'cargo fmt --all -- --check' step was red: the components added
in #1-#3 were not rustfmt-formatted. cargo fmt --all over the crate.
kakarot-dev added a commit that referenced this pull request May 22, 2026
checkbox painted its 18px box with radius_sm (7px), which reads as a
circle rather than a checkbox. Add a radius_xs token (4px) + rounding_xs()
helper and use it for the checkbox box, so it renders as a proper square.
kakarot-dev added a commit that referenced this pull request May 22, 2026
The CI 'cargo fmt --all -- --check' step was red: the components added
in #1-#3 were not rustfmt-formatted. cargo fmt --all over the crate.
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.

1 participant