Repository navigation
fix(site/src): raise checkbox and radio border contrast to 3:1 - #30462
Merged
Merged
Conversation
Add border-control and border-control-hover color tokens and use them for the resting and hover borders of the shared Checkbox and RadioGroupItem components. The previous borders (border-default and border-secondary) fell below the 3:1 non-text contrast required by WCAG 1.4.11. border-control is zinc-500 in both themes. border-control-hover is zinc-400 in dark mode and zinc-600 in light mode.
chrifro
marked this pull request as ready for review
October 8, 2026 08:44
This was referenced Oct 8, 2026
Merged
chrifro
added a commit
that referenced
this pull request
Oct 9, 2026
…en for swatch ring Use surface-invert-secondary, which already exists on main and is used for the Slider handle border, instead of the border-control token added in #30462.
aqandrew
approved these changes
Oct 13, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The resting and hover borders of the shared
CheckboxandRadioGroupItemwere below the 3:1 non-text contrast required by WCAG 1.4.11. In dark mode, the resting border was#27272Aon#09090B(1.33:1) and the hover border was#3F3F46(1.90:1). In light mode, they were#E4E4E7on white (1.27:1) and#A1A1AA(2.56:1).This adds two color tokens and uses them in both components:
border-control#71717A(4.1:1 on page, 3.7:1 onsurface-secondary)#71717A(4.8:1 on white)border-control-hover#A1A1AA(7.8:1)#52525B(7.7:1)A checked radio now uses the same
border-controlborder as an unchecked one. Before, it usedborder-secondary. Checked and indeterminate checkboxes keep their inverted fill.border-defaultandborder-secondaryare unchanged, so cards, dividers and other decorative borders look the same. The colorblind themes inherit the new tokens from the base light and dark blocks.Fixes DEQ-583, DEQ-151, DEQ-426, DEQ-590, DEQ-433, DEQ-152, DEQ-300
Refs DEQ-285, DEQ-51
Before and after
Checkboxes on Create user > Roles and radios on Appearance > Terminal font. In the hover rows, the pointer is on the first item.
Decision log
border-secondary.border-secondaryis used in 14 places, and only 4 are form controls. The rest are card hovers, table-row outlines and chips. Retuning it would make those heavier for no accessibility gain.surface-secondary, so it fails. The darkest zinc-tinted value that passes on both is abouthsl(240 5% 42%), but it only clears 3:1 by about 0.1, so we chose zinc-500 for margin.CheckboxandRadioGroupItem. These are handled in follow-ups: inputs and field-style triggers (Input, Textarea, Select, InputGroup, Combobox and others), the Switch (it usessurface-quaternary), the template builderModuleCardcheckbox (DEQ-148), the theme card radio indicator inSingleModeSection(the theme-card part of DEQ-285) and theThemeSwatchring (DEQ-597).Generated by Coder Agents on behalf of @chrifro.