Examples

Simple

Small

Large

Outside

Inside

Outside static width measure

On single line

Without measure

Finite step

Truncate description

Helper text

Non-percentage progress

If the status that displays with the bar is not a percentage, then the ARIA tag aria-valuetext should be used to provide this status to screen reader users. This is the only case when setting the aria-valuemax to a value other than “100” is recommended, given how different screen readers handle these attributes.

Progress step instruction

Status examples

When conveying status, you should ensure:

  • There is visible helper text that explains the status.
  • The helper text includes the status icon, as seen in our HTML helper text component.
  • The helper text is linked to the .pf-v6-c-progress__bar[role="progressbar"] element via an aria-describedby attribute, as seen in the progress helper text example.

Success

Warning

Failure

Inside success

Inside warning

Outside failure

Failure without measure

Documentation

Overview

Accessibility

If this component is describing the loading progress of a particular region of a page, the author should use aria-describedby to point to the status, and set the aria-busy attribute to true on the region until it is finished loading.

AttributeApplied toOutcome
role="progressbar".pf-v6-c-progress__barThis role is used for an element that displays the progress status for a task that takes a long time or consists of several steps.
aria-valuenow="".pf-v6-c-progress__barThis value needs to be updated as progress continues.
aria-valuemin="0".pf-v6-c-progress__barThe minimum value for the progress bar.
aria-valuemax="100".pf-v6-c-progress__barThe maximum value for the progress bar. If the progress is only defined using aria-valuenow (e.g a percentage), the value should be set to “100”. If the progress is defined using aria-valuetext, then this value can be a number other than 100. For example, if aria-valuetext is “2 of 5 units”, then aria-valuemax can be “5” and aria-valuenow can be “2”.
aria-label="[id of .pf-v6-c-progress__description]".pf-v6-c-progress__barProvides an accessible name for the progress component.
aria-labelledby="[id element that labels the progress]".pf-v6-c-progress__barProvides an accessible name for the progress component.
aria-describedby="[id of element that describes the progress]".pf-v6-c-progress__barProvides an accessible description for the progress component.
aria-valuetext="[loading state]".pf-v6-c-progress__barProvide a text string that communicates current status. Only use if the important information about status is included in the text string. Do not use if percentage is the most important value to communicate. Some screen readers will ignore the percentage value determined from aria-valuenow when aria-valuetext is used.
aria-hidden="true".pf-v6-c-progress__statusHides the visible progress bar status from screen readers. This information is communicated by the aria attributes defined on the .pf-v6-c-progress__bar element.

Usage

ClassApplied toOutcome
.pf-v6-c-progress<div>Initiates a progress component.
.pf-v6-c-progress__description<div>The description for a progress bar.
.pf-v6-c-progress__status<div>Displays the % of progress and status icons.
.pf-v6-c-progress__measure<span>Displays the % complete.
.pf-v6-c-progress__status-icon<span>Displays the status icon. (optional)
.pf-v6-c-progress__bar<div>Displays across the entire width and represents the completed state.
.pf-v6-c-progress__indicator<div>Displays with the .pf-v6-c-progress__bar to indicate the progress so far.
.pf-v6-c-progress__helper-text<div>Displays additional text below the progress bar. (optional)
.pf-m-lg.pf-v6-c-progressModifies the progress bar to be larger.
.pf-m-sm.pf-v6-c-progressModifies the progress bar to be smaller.
.pf-m-inside.pf-v6-c-progressShows the measure within the progress indicator. NOTE: This option requires .pf-m-lg.
.pf-m-outside.pf-v6-c-progressShows the measure and status icon to the right of the progress bar.
.pf-m-singleline.pf-v6-c-progressModifies the progress component to exist on one row. If a measure is needed, use with .pf-m-inside or .pf-m-outside
.pf-m-success.pf-v6-c-progressChanges the appearance of the progess component to indicate a success state.
.pf-m-warning.pf-v6-c-progressChanges the appearance of the progess component to indicate a warning state.
.pf-m-danger.pf-v6-c-progressChanges the appearance of the progess component to indicate a danger (failure) state.
.pf-m-truncate.pf-v6-c-progress__descriptionModifies the description to display a single line and truncate any overflow text with ellipses.
.pf-m-static-width.pf-v6-c-progress.pf-m-outside .pf-v6-c-progress__measureModifies the measure element to have a static min-width that will hold 0-100%. Overridable by setting --pf-v6-c-progress__measure--m-static-width--MinWidth.

CSS variables