Skip to content

fix: use the emerald accent for Radzen switches and checkboxes#1

Merged
andregoepel merged 1 commit into
mainfrom
fix/switch-checkbox-accent
Jul 8, 2026
Merged

fix: use the emerald accent for Radzen switches and checkboxes#1
andregoepel merged 1 commit into
mainfrom
fix/switch-checkbox-accent

Conversation

@andregoepel

Copy link
Copy Markdown
Owner

Radzen switches and checkboxes rendered in Radzen's default indigo when on, instead of the design's emerald accent — because Radzen's checked state uses its own CSS variables (--rz-switch-checked-background-color, --rz-checkbox-checked-*), not --rz-primary which the design already remaps.

Map the on-state onto --ag-accent: green switch track with a white knob, and an accent-filled checkbox with an on-accent tick — matching the AppFoundation Screens design (e.g. the email/login-feature toggles and the "Show deleted" checkbox).

Pure token remap in design.css; build + csharpier pass.

Needs a 1.0.1 release so consumers (app-foundation admin toggles, marten-identity 2FA switches) pick it up.

Radzen's switch/checkbox "checked" state uses its own CSS variables
(--rz-switch-checked-background-color, --rz-checkbox-checked-*), not --rz-primary,
so toggles and checkboxes stayed Radzen's default indigo instead of the design
accent. Map the on-state onto --ag-accent (green track, white knob; accent-filled
checkbox with on-accent tick), matching the AppFoundation Screens design.
@andregoepel
andregoepel merged commit 1062bcc into main Jul 8, 2026
2 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.

1 participant