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

fix(a11y): solve some issues #1240

Merged
merged 1 commit into from
Dec 18, 2020
Merged

fix(a11y): solve some issues #1240

merged 1 commit into from
Dec 18, 2020

Conversation

Thomaash
Copy link
Member

  • Tabindex on the network element is 0 now.
  • All pages now declare their language.
  • Manipulation buttons are buttons now.
  • Manipulation buttons are tabbable now.
  • Manipulation buttons can be triggered by the keyboard (enter, space).
  • Manipulation close button has aria label (I speak only 3 languages of the 11 I translated, there may be errors.).

Most of the stuff was just about ignoring accessibility (I'm sure there still is a lot to improve.) but one thing that stands out is the tabindex attribute on the network element (as reported by #1238). I wonder why it was set to 900. No matter how I think about it, 900 just seems nonsensical to me (also, pretty arbitrary value). The only thing it achieves is bizarre tabbing behavior (It would be focused as the first thing in the page no matter where it's placed, unless something has positive tabindex of 899 or less.).

This PR will change how tabbing works in pages using Vis Network. However I can't imagine why would anyone want it the old way. From my perspective, Vis Network used to mess up tabbing order and now it doesn't. We may discuss this further though, as there may be situations where this could be considered a breaking change, I just don't see any.

Closes #1238.

- Tabindex on the network is 0 now.
- All pages now declare their language.
- Manipulation buttons are buttons now.
- Manipulation buttons are tabbable now.
- Manipulation buttons can be triggered by the keyboard (enter, space).
- Manipulation close button has aria label.
@Thomaash Thomaash requested a review from a team December 16, 2020 19:45
@yotamberk yotamberk merged commit 979488e into master Dec 18, 2020
@yotamberk yotamberk deleted the issue1238 branch December 18, 2020 07:44
@vis-bot
Copy link
Collaborator

vis-bot commented Dec 18, 2020

🎉 This PR is included in version 8.5.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

network visualization sets tabindex=900 which harms accessibility
3 participants