Skip to content

ProgressBar

What component has

Roles and attributes

The list below describes roles and attributes that component already has.

RoleAttributeElementUsage
progressbardivDefines an element that displays the progress status for tasks that take a long time.
aria-valuenow="NUMBER"divDefines the current value for a range widget.

Considerations for developers

You can find best practices and tips in ARIA: progressbar role.

Roles and attributes

The list below will help you to keep in mind the necessary roles and attributes to make our components fully accessible in the particular cases in your interfaces.

AttributeElementUsage
tabIndex="0"divIncludes the ProgressBar in the page Tab sequence. While it's not a mandatory, but can help in enhancing ProgressBar discoverability by making it focusable.
aria-valuetext="string"divDefines the human readable text alternative of aria-valuenow for a range widget. Assistive technologies often present the value of aria-valuenow as a percentage. If this would not be accurate use this property to make the progress bar value understandable.
aria-valuemintextDefines the minimum allowed value for a range widget. Set to a decimal value representing the minimum value, and less than aria-valuemax. If not present, the default value is 0.
aria-valuemaxtextDefines the maximum allowed value for a range widget. Set to a decimal value representing the maximum value, and greater than aria-valuemin. If not present, the default value is 100.
aria-label or aria-labelledbydivDefines the string value or identifies the element (or elements) that label the progressbar element providing an accessible name. An accessible name is required.

Resources

Find live examples of accessible inputs with different types in DigitalA11y project.

Other recommendations

See more accessibility recommendations in the common Accessibility guide.

Released under the MIT License.

Released under the MIT License.