15 of 15

Contrast checker on the old checkbox border: #D4D4D4 on white at 1.48:1, failing for text and graphics.
Before: the default border at 1.48:1

Checkbox & Radio

A proposal to make Stencil's Checkbox and Radio easier to see and use.

Impact

  • The proposal took the default border contrast 1.48:1 → 10.3:1, from failing to well past the 3:1 WCAG AA minimum for UI parts.
  • The proposal added the 3 missing states: focus, pressed and error.
  • The proposal cut transitions 360ms → 100ms, so the controls would no longer feel laggy.

Problem

An audit of Stencil, Mindtickle's design system, found that Checkbox and Radio were hard to see and use. The default border was too faint, hover was hard to notice, and the focus, pressed and error states were missing. A slow transition also made the controls feel laggy.

Approach

I wrote and owned the proposal, and shared the final decision with a colleague.

  • Benchmarks. Five other design systems, compared on how they handle these controls.
  • Interviews. Three colleagues who design with them.
  • Survey. 30 people, asked how the controls should behave.
  • Clearer structure. The component's properties split into selection and state, so every combination is easy to find and build.

Findings

I had argued that clicking a half-checked parent checkbox should clear its children. In the survey, 60% expected it to select them instead, so we kept that behavior.

Where it stands

Proposal.

We agreed on the stronger border, the new states, faster transitions and the split properties. They were planned to go live with a planned refresh of Stencil's design, but what shipped isn't confirmed.

Default border contrast, against the 3:1 minimum for UI parts

Contrast ratios start at 1:1. Proposed, not confirmed as shipped.

Contrast
Before1.48:1
Proposed10.3:1
AA minimum 3:13:1

Transition time

Proposed, so the controls stop feeling laggy.

Value
Before360 ms
Proposed100 ms
Contrast checker on the new checkbox border: #404045 on white at 10.3:1, passing AA and AAA.
After: border/strong at 10.3:1

Manyu Varma

മന്യു വർമ്മ

Thinking beyond just consistency, building design systems at scale through robust yet flexible foundations, strategy and planning, relevant design, and AI workflows.

Highlights

Work

Agentic

Early AI

Pre-AI

Hold Alt or Option to see the spacing.