HTML

Progress

ExamplesDocumentationCSS Variables

Examples

Simple

Title

Small

Title

Large

Title

Outside

Title

Inside

Title
33%

Success

Title

Failure

Title

Inside success

Title
100%

Outside failure

Title

On single line

Without measure

Title

Failure without measure

Title

Finite step

Title

Non-percantage 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

Title

Documentation

Overiew

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-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-c-progress__barThis value needs to be updated as progress continues.
aria-valuemin="0".pf-c-progress__barThe minimum value for the progress bar.
aria-valuemax="100".pf-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-describedby="[id of .pf-c-progress__description]".pf-c-progress__barThe description of what progress is being shown.
aria-valuetext="[loading state]".pf-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-c-progress__statusHides the visible progress bar status from screen readers. This information is communicated by the aria attributes defined on the .pf-c-progress__bar element.

Usage

ClassApplied toOutcome
.pf-c-progress<div>Initiates a progress component.
.pf-c-progress__description<div>The description for a progress bar.
.pf-c-progress__status<div>Displays the % of progress and status icons.
.pf-c-progress__measure<span>Displays the % complete.
.pf-c-progress__status-icon<span>Displays the status icon. (optional)
.pf-c-progress__bar<div>Displays across the entire width and represents the completed state.
.pf-c-progress__indicator<div>Displays with the .pf-c-progress__bar to indicate the progress so far.
.pf-m-lg.pf-c-progressModifies the progress bar to be larger.
.pf-m-sm.pf-c-progressModifies the progress bar to be smaller.
.pf-m-inside.pf-c-progressShows the measure within the progress indicator. NOTE: This option requires .pf-m-lg.
.pf-m-outside.pf-c-progressShows the measure and status icon to the right of the progress bar.
.pf-m-singleline.pf-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-c-progressChanges the appearance of the progess component to indicate a success state.
.pf-m-danger.pf-c-progressChanges the appearance of the progess component to indicate a danger (failure) state.

CSS Variables

--pf-c-progress__bar--BackgroundColorc_progress__bar_BackgroundColor
#fff
--pf-c-progress__bar--before--BackgroundColorc_progress__bar_before_BackgroundColor
#c9190b
--pf-c-progress__bar--before--Opacityc_progress__bar_before_Opacity
.2
--pf-c-progress__bar--Heightc_progress__bar_Height
1.5rem
--pf-c-progress__indicator--BackgroundColorc_progress__indicator_BackgroundColor
#06c
--pf-c-progress__indicator--Heightc_progress__indicator_Height
1rem
--pf-c-progress__status-icon--Colorc_progress__status_icon_Color
#c9190b
--pf-c-progress__status-icon--MarginLeftc_progress__status_icon_MarginLeft
0.5rem
--pf-c-progress--GridGapc_progress_GridGap
1rem
--pf-c-progress--m-danger__bar--BackgroundColorc_progress_m_danger__bar_BackgroundColor
#c9190b
--pf-c-progress--m-danger__status-icon--Colorc_progress_m_danger__status_icon_Color
#c9190b
--pf-c-progress--m-inside__indicator--MinWidthc_progress_m_inside__indicator_MinWidth
2rem
--pf-c-progress--m-inside__measure--Colorc_progress_m_inside__measure_Color
#151515
--pf-c-progress--m-inside__measure--FontSizec_progress_m_inside__measure_FontSize
0.875rem
--pf-c-progress--m-lg__bar--Heightc_progress_m_lg__bar_Height
1.5rem
--pf-c-progress--m-outside__measure--FontSizec_progress_m_outside__measure_FontSize
0.875rem
--pf-c-progress--m-sm__bar--Heightc_progress_m_sm__bar_Height
0.5rem
--pf-c-progress--m-sm__description--FontSizec_progress_m_sm__description_FontSize
0.875rem
--pf-c-progress--m-sm__measure--FontSizec_progress_m_sm__measure_FontSize
0.875rem
--pf-c-progress--m-success__bar--BackgroundColorc_progress_m_success__bar_BackgroundColor
#92d400
--pf-c-progress--m-success__status-icon--Colorc_progress_m_success__status_icon_Color
#92d400
--pf-c-progress--m-success--m-inside__measure--Colorc_progress_m_success_m_inside__measure_Color
#151515