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

[Tree view] Possibility of using right arrow to reach a secondary action / context menu on tree items #18523

Open
alina-jacob opened this issue Feb 5, 2025 · 1 comment

Comments

@alina-jacob
Copy link
Member

alina-jacob commented Feb 5, 2025

Acceptance criteria

The webMethod's API studio team is interested in having a context/overflow menu in a tree view item, to allow the addition of new folders, deletions, renaming, etc.

To add an overflow menu or right click context menu as a child of the tree view node, we have been exploring using right arrow to provide access to an overflow menu inside a node.

For end nodes, this would seem to be conflict-free, since right arrowing on an end node has no current action.
For a parent node, right arrow has an action. However, right arrow on an open parent node has an action which I would call a redundant action. All it does is move to the first child node of the parent, which can also be accomplished with a down arrow.

Current interaction
Right arrow:

  • When focus is on a closed node, opens the node; focus does not move.
  • When focus is on a open node, moves focus to the first child node.
  • When focus is on an end node, does nothing.

Image


Proposed interaction
Right arrow:

  • When focus is on a closed node, opens the node; focus does not move.
  • When focus is on a open node, moves focus to the secondary action, if one exists.
  • When focus is on an end node, moves focus to the secondary action, if one exists.

Image


Important links:

@Kritvi-bhatia17
Copy link
Contributor

The best way to experience the proposed interaction is through the Monday tool, where it has been implemented effectively, making it easy to explore and interact with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage
Development

No branches or pull requests

2 participants