You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
There is a reason, yes. WAI-ARIA is meant to support a wide range of audiences (both devices and abilities). There are certainly cases where merely clicking on a node is not intended to invoke an action.
The current Using ARIA trees Wiki on W3C only cites mouse interaction in one location where it identifies that parent nodes should be toggled on double-click. There is no mention of single-click behavior.
From the W3C WAI-ARIA Best Practices document (which is cited as not the latest document and references back to the previously-mentioned WAI-ARIA Authoring Practices document):
Mouse Interaction:
* Click on a node sets focus and selects the node
* Double click on an end node causes any associated action to be invoked.
* Click on a closed node opens the node.
Now, as you've probably noted there is a statement there identifying that a single-click on a closed node should open it.
So, it's hard to say exactly what the W3C's intention is or was. Obviously, at one point, it was recommended that nodes only open when single-clicked. But, that behavior doesn't appear to be included in any current materials. Multiple references cite that an action should take place when a node is double-clicked which is how this library is currently implemented.
I'm certainly open to re-addressing this behavior especially if there's recent documentation that I haven't yet come across!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Any specific reason it opens on double click? Is this an accessibility thing?
The text was updated successfully, but these errors were encountered: