-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for setting/changing the focus order for tab traversal #40
Comments
From http://webaim.org/techniques/keyboard/tabindex Drawbacks to tabindex |
…llow clients to optionally override the tabindex, see #40
A note from the above commit, I am defaulting all peers to tabindex=1 because tabindex=0 for any of the components was interfering with setting nonzero tabindex for any of the components. |
Changeset looks good. I will still prefer the higher-level nested tab-handling support when we can make it. Tabindex isn't as useful in documents (since document order is visual top-to-bottom, instead of the back-to-front that is more prevalent with Scenery) |
assigning to @jessegreenberg for issue hygiene, what is the status here? is this issue still relevant? |
This issue can be closed. We have support for setting/changing the focus order for tab traversal with scenery/Node.setAccessibleOrder().
Since we adopted the Parallel DOM approach we essentially get this behavior for free with form elements such as radio button groups. 'Tab Group' behavior is defined by the browser/HTML. We have also learned that reordering of the accessibility tree should also be avoided since the user tends to orient based on other elements in the document. |
We should add support for setting/changing the focus order for tab traversal. Right now the order is equivalent to the order added to the scenery.Scene, which is not often accurate. The simplest thing to do first may be to give nodes the ability to set the tabindex for their peers directly. Later we should investigate support for a higher-level support that makes it easy to set tab groups, (such as being able to tab through all elements in a control panel instead of jumping around).
The text was updated successfully, but these errors were encountered: