Skip to content
Design System
GitHub

Metric card

v0.19.0Beta

One headline number on a card: label, value, change and context, coloured only when the change is for the worse; a link, loading and unavailable state, and MetricGrid for the row.

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

  • link
  • Follows the WAI-ARIA pattern Link.

Keyboard

No keys of its own. Tab reaches each control in it, and each works as the browser's own button, link or field does.

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.