Accessibility

  • role="progressbar" with a name: aria-labelledby the visible label, or aria-label="Loading files" on a spinner shown alone.
  • Determinate: aria-valuemin="0", aria-valuemax="100" and aria-valuenow. Indeterminate: leave aria-valuenow out.
  • Set aria-busy="true" on the region that is loading, and announce the end or the failure in a polite live region (role="status").
  • Contrast: the accent bar is 7.3:1 on paper in light and 9.0:1 in dark, and 6.3:1 and 6.8:1 on the container track (computed from the tokens). The track is decorative; the label and value carry the meaning.
  • Motion: stop every indicator the moment the work ends (WCAG 2.2.2, Pause, Stop, Hide). Under prefers-reduced-motion the bar stops and the spinner slows, as above.