Switch
Alignment target:@astryxdesign/core v0.7.1 · Switch
Color contrast
Measure the foreground and background as they appear together on screen. The ratios below are the WCAG 2.2 AA checks for this component.
| Check | Ratio | Applies to | Guidance |
|---|---|---|---|
| Track and thumb | 3:1 | Rest, Hover, Pointer down | The on and off tracks must each have at least 3:1 contrast with the surface behind them, and the thumb with its track. For Hover and Pointer down, measure the final colors after the tint and the pressed overlay are applied. 1.4.11 Non-text Contrast |