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

[accessibility] Use aria-disabled to convey the disabled state #98

Open
Malvoz opened this issue Dec 1, 2020 · 0 comments
Open

[accessibility] Use aria-disabled to convey the disabled state #98

Malvoz opened this issue Dec 1, 2020 · 0 comments

Comments

@Malvoz
Copy link

Malvoz commented Dec 1, 2020

aria-hidden is used in the disabled state:

this.button.setAttribute('aria-hidden', 'false');

this.button.setAttribute('aria-hidden', 'true');

which only hides the content from screen readers, but the button remains focusable, and because it is aria-hidden="true" nothing is announced to the user when it is focused.

I suggest replacing aria-hidden with aria-disabled to convey to screen readers that the button is currently disabled.
See related Leaflet issue: Leaflet/Leaflet#7211 / PR: https://github.com/Leaflet/Leaflet/pull/7280/files.


Other potentially helpful resources:

@Malvoz Malvoz changed the title Use aria-disabled to convey the disabled state? [accessibility] Use aria-disabled to convey the disabled state Dec 10, 2020
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