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.

Make the disabled state of zoom controls available to ATs

See original GitHub issue

The leaflet-disabled class is set on zoom controls: https://github.com/Leaflet/Leaflet/blob/71f73785c91f50821cee4f590c41b14eeddf394c/src/control/Control.Zoom.js#L102-L104 and styles are applied to convey a “disabled” state: https://github.com/Leaflet/Leaflet/blob/71f73785c91f50821cee4f590c41b14eeddf394c/dist/leaflet.css#L310-L314

the zoom controls remain operable however, and the state is not available to assistive technologies such as screen readers. There are at least 3 ways to convey the disabled state of buttons:

  • tabindex="-1" - Bing Maps for example, uses this approach. Though it may be confusing to keyboard-only users, as the button is then removed from the tab order.
  • The disabled attribute - Not applicable (Leaflet uses <a role="button"> as opposed to <button>).
  • aria-disabled="true" - May or may not be as well supported as a negative tabindex or the disabled attribute, it does seem to be well supported though.

Whether tabindex="-1" or aria-disabled="true|false" is used (I personally vote for the latter), it could be set in addition to the leaflet-disabled class for backwards compatibility.


Implementing this may satisfy (parts of) the WCAG 2.1 Success Criterion: 1.3.1 Info and Relationships and 4.1.2 Name, Role, Value for the zoom controls.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
IvanSanchezcommented, Sep 10, 2020

@AkshataJ96 Nobody seems to be working on this on the moment, feel free to pick it up.

0reactions
Malvozcommented, Sep 25, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

End User Authorization Flows - Zoom App Marketplace
This role grants admins the ability to control which apps can be installed on the account and by individual users on the account....
Read more >
A Tutorial for Making Online Learning Accessible to Students ...
In this module, I provide self-paced instruction to help you get started in making your online course accessible to, usable by, and inclusive...
Read more >
What is accessibility? - Learn web development | MDN
We traditionally think of this as being about people with disabilities, but the practice of making sites accessible also benefits other ...
Read more >
INFORMATION AND COMMUNICATION TECHNOLOGY (ICT ...
C Making ICT Inclusive for Persons with Disabilities . ... funds for the state governments to provide assistive technologies (ATs) for.
Read more >
Using Apple Technology to Support Learning for Students with ...
how teachers, students, and parents can use Apple technology to make a ... disabilities are increasingly able to interact with classroom technologies and....
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