[NO-ISSUE] feat(webkit): switch contrast, concentric radius & theme-stable handle#799
Open
gab-az wants to merge 1 commit into
Open
[NO-ISSUE] feat(webkit): switch contrast, concentric radius & theme-stable handle#799gab-az wants to merge 1 commit into
gab-az wants to merge 1 commit into
Conversation
robsongajunior
approved these changes
Jul 26, 2026
robsongajunior
enabled auto-merge (squash)
July 26, 2026 01:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Design enhancements to the
Switchcomponent (inputs/switch), addressing a dark-mode contrast bug and aligning shape with the token system.--bg-canvasand the lock icon--accent-contrast; in dark mode both resolved to black, so the lock icon (and the knob itself) had no contrast. The checked handle now uses--color-base-whiteand the lock icon--color-base-black— theme-independent base primitives, so the white knob + black lock stay fixed and legible in both light and dark.--accent(was the stale--success-contrastgreen).rounded-[var(--shape-elements)](6px); handle usesrounded-[var(--radius)](4px), concentric with the track (6px track −px-0.52px inset)..specs/switch.md): Tokens table + Theme gaps reflect the above; body checksum recomputed.Notes
--fg-handle-ontokens.validate-spec-compliance,validate-tokens, ESLint, andvue-tsctype-check all pass. Full Storybook build not run locally.