Status
Progress indicator
A progress indicator shows that the app is working on something the person asked for: a bar where the result will appear, or a spinner for a short wait in a small space.
In kanso-ui as ProgressIndicator
Accessibility
role="progressbar"with a name:aria-labelledbythe visible label, oraria-label="Loading files"on a spinner shown alone.- Determinate:
aria-valuemin="0",aria-valuemax="100"andaria-valuenow. Indeterminate: leavearia-valuenowout. - 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
accentbar is 7.3:1 on paper in light and 9.0:1 in dark, and 6.3:1 and 6.8:1 on thecontainertrack (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-motionthe bar stops and the spinner slows, as above.