Badge
v0.16.1Status tones as foreground on subtle tint, plus outline; CountBadge for a count and ResultBadge for a pass, a fail or too few samples.
Roles
What a screen reader is told each part is, measured in the examples on the Overview tab.
No role of its own: it is read as the text it contains.
Keyboard
Nothing in it takes focus: it is read, not operated, so it has no keys.
Colour contrast
Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.
- TextLabels, values, bodyWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 17.3:1Dark 17.3:1
- Secondary textHints, meta, captionsWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 6.7:1Dark 7.0:1
- Danger textErrors, worse-than-before figuresWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 9.0:1Dark 5.7:1
- Neutral on its tintText in the neutral tone, on the neutral tintWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 7.0:1Dark 6.6:1
- Info on its tintText in the info tone, on the info tintWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 5.8:1Dark 6.3:1
- Warning on its tintText in the warning tone, on the warning tintWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 5.2:1Dark 10.9:1
- Danger on its tintText in the danger tone, on the danger tintWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 8.3:1Dark 5.1:1