question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Progress Bar Examples have accessibility issues

See original GitHub issue

Prerequisites

Describe the issue

The provided examples at: https://getbootstrap.com/docs/5.2/components/progress/ have accessibility issues reported by both Google Lighthouse and Webhint.io

I think that the progress bar should have a non-empty aria-label attribute or a title.

REF: https://dequeuniversity.com/rules/axe/4.4/aria-progressbar-name?application=axeAPI

Let me know what you think, I’d be happy to open a PR…

(I realise this might be flagged as an accessibility issue incorrectly and maybe the aria-valuenow, aria-valuemax and aria-valuetext attributes are enough? cc @patrickhlauke )

Reduced test cases

Webhint screenshot: image

Lighthouse screenshot: image

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Microsoft Edge

What version of Bootstrap are you using?

v5.2.0-beta1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhlaukecommented, Jul 13, 2022

ditto…i think i’m just going to go with something generic like “example” or similar. and something a bit more creative for the stacked bars example

1reaction
patrickhlaukecommented, Jul 13, 2022

@coliff already started making a PR, so no worries 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ARIA: progressbar role - Accessibility - MDN Web Docs
The progressbar role defines an element that displays the progress status for tasks that take a long time.
Read more >
Accessibility - Progress indicator - Carbon Design System
A progress indicator is a visual representation of a user's progress through a set of steps. It guides the user through a number...
Read more >
ARIA progressbar must have an accessible name | Axe Rules
Screen reader users are not able to discern the purpose of elements with role="progressbar" that do not have an accessible name. Rule Description....
Read more >
Showing progress | Accessible App
A screen reader's virtual cursor has to be placed on the progressbar in order to hear its information. One way to ensure that...
Read more >
Multi-page Forms | Web Accessibility Initiative (WAI) - W3C
If a form has a known number of steps to be completed, a step-by-step indicator can help users orient themselves. In the example...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found