crisbeto / angular-svg-round-progressbar

Angular module that uses SVG to create a circular progressbar
https://crisbeto.github.io/angular-svg-round-progressbar/
MIT License
741 stars 173 forks source link

ARIA progressbar nodes must have an accessible name #227

Open Klarence opened 2 years ago

Klarence commented 2 years ago

Issue

When running Deque's aXe DevTools I receive the error:

ARIA progressbar nodes must have an accessible name

Fix at least one (1) of these issues:

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

Solution

Please provide an @inputfor at least one of the following:

  1. aria-label
  2. aria-labelledby
  3. title

Due to the accessibility issues with the title attribute for mobile and keyboard users. A strong preference for aria-label and aria-labeledby.

crisbeto commented 2 years ago

It would be difficult to set an aria-label or aria-labelledby automatically from inside the library since it can't know what context the component is used in. You can set the aria-label on the round-progress element yourself.