Progress Bar Examples have accessibility issues
See original GitHub issuePrerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
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:
Lighthouse screenshot:
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:
- Created a year ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@coliff already started making a PR, so no worries 😃