Skip to content

Progress

A progress bar, filled to a value, or moving across while the length of the wait is unknown.

  • .aparte-progress
On this page
Open

.aparte-progress is the track and .aparte-progress__bar the part that fills, to a width you set. --indeterminate moves the bar across when you cannot say how far along the wait is. The context gauge is drawn with this recipe.

VariableDefault
--aparte-progress-indeterminate-width40%
--aparte-progress-heightvar(--aparte-space-2)
--aparte-progress-fillvar(--aparte-primary)

.aparte-progress · .aparte-progress--indeterminate · .aparte-progress__bar

  • The recipe paints; the meaning is yours to give. A bar with a value takes role="progressbar" with aria-valuenow, aria-valuemin and aria-valuemax, and a name saying what is progressing.
  • The bar is drawn with a border, so it stays visible in forced-colours mode.