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

tab jumps are weird #24

Open
otacke opened this issue Apr 20, 2017 · 4 comments
Open

tab jumps are weird #24

otacke opened this issue Apr 20, 2017 · 4 comments

Comments

@otacke
Copy link
Contributor

otacke commented Apr 20, 2017

It seems there might a problem with the tabindex. I have not really looked into this topic (related to ARIA), but it seems that the jump order for n alternatives is:

  • 1st alternative
  • 1s_ hint
  • 2nd hint
  • 3rd hint
  • ...
  • n-1th hint
  • nth alternative
  • nth hint

Looks strange to me.

@falcon-git
Copy link
Member

You are right. With hints/tips it doesn't seem to work exactly as designed. Arrow keys to move the focus between alternatives is intended, tab to focus on the hint is also as designed. If you tab several times you move between hints, also as designed afaik. The last alternative gets the focus after the last hint, this is not as designed afaik.

@otacke
Copy link
Contributor Author

otacke commented Apr 25, 2017

Oh, now I get it. I still have to learn about how to design accessible applications.

I had assumed that the tab key was the major key that should be used to jump from element to element which here are the alternatives. But it makes total sense to give focus to all the alternatives first and then choose the sub elements with the arrow keys. I guess since the role for the container says "radiogroup", people will know that they can now use the arrow keys for selection?

@falcon-git
Copy link
Member

Yes, that is my understanding. The default behavior of normal radio button groups is that you use keys to select and tab will make you move along.

@icc
Copy link
Member

icc commented Apr 25, 2017

Regarding the hints, I wonder if it would make more sense if you could only tab to the hint next to the focused option. It is essentially a list where you can possibly have an "infinite" number of tabbable buttons, which I believe is to be avoided according to ARIA.

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

3 participants