Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses invalid ARIA roles #232

Open
aardrian opened this issue Aug 17, 2021 · 1 comment
Open

Uses invalid ARIA roles #232

aardrian opened this issue Aug 17, 2021 · 1 comment

Comments

@aardrian
Copy link

The animated line has this construct:

<div class="bar" role="bar" style="[…]">[…]</div>

The spinner has this construct:

<div class="spinner" role="spinner">[…]</div>

There is no ARIA role bar and no role spinner. An automated accessibility checker would have picked this up. You can see a full list of roles at the ARIA 1.1 spec. As it stands now, this constitutes a WCAG failure.

I suggest rebuilding this to expose correct roles, states, and properties so the browser accessibility APIs can convey the progress bar to assistive technology users.

@aardrian
Copy link
Author

I performed a poor search. I see this is a duplicate of this 2017 issue:
Invalid ARIA roles #180

It looks like this has been forked and made accessible (per the claim; did not test):
https://github.com/nmackey/accessible-nprogress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant