ARIA progressbar elements do not have accessible names

How to fix the aria-progressbar-name accessibility rule. ARIA.

The message you saw

Lighthouse and PageSpeed Insights
ARIA progressbar elements do not have accessible names.
axe-core, axe DevTools and this checker
ARIA progressbar nodes must have an accessible name (rule aria-progressbar-name)

Lighthouse runs axe-core inside it, so both are the same check, and the fix below works whichever tool showed you the message.

What it means

A progress bar made with role="progressbar" needs a name that says what is progressing: “Upload progress”, “Step 2 of 4”. This message means a progress bar has no aria-label, aria-labelledby or title.

Text inside the element doesn’t give it a name. A progress bar’s children are treated as decoration, so “Uploading…” written inside it isn’t used as the name.

Who is affected

A progress bar has no name, so screen readers say "progress bar, 40%" without saying what is loading.

Screen-reader users hear “progress bar, 40 percent” with no idea what is loading, which matters most when there are several on a page, or when a long task is running and they are waiting for it.

How to find it

  1. Run the checker on the page while the progress bar is showing: the report lists each unnamed one.
  2. Search your code (and loading-spinner components) for role="progressbar".

How to fix it

  1. Add aria-label with what is progressing, or aria-labelledby pointing at visible text that says it.
  2. Give the current value with aria-valuenow (and aria-valuemin/aria-valuemax if it isn’t 0 to 100). Leave aria-valuenow out only when the progress is unknown (a spinner).
  3. Or use the native <progress> element with a <label>.

Example

Before

<div role="progressbar" aria-valuenow="40">
  <div class="fill" style="width:40%"></div>
</div>

After

<span id="up-label">Uploading report.pdf</span>
<div role="progressbar" aria-labelledby="up-label" aria-valuenow="40">
  <div class="fill" style="width:40%"></div>
</div>

Common mistakes

WCAG success criteria

When this rule fails, the page fails:

Check your fix

Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools. Scan again after your change: when the rule no longer appears under the problems, the fix worked.

An automated pass means this rule found nothing wrong. It doesn’t prove the page is accessible: some of what WCAG asks for needs a person to check, and the report’s manual checklist lists those steps.

Related fix guides

More detail