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

Activate item on select/check to do keyboard navigation onwards #695

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

benroe89
Copy link

Status Quo

The tree component allows to do keyboard navigation and mouse navigation.
If user uses the keyboard navigation (by tabbing on it) the tree item is shown active (not to be confused with selected).

Problem

If user moves the mouse again, the active item is reset.
This might be annoying resp. not user-friendly, if the user wants to select a tree item and from there on use keyboard navigation.

Motivation

User should be able to use keyboard and mouse navigation seamlessly, and not mutual exclusive.

Solution

Do not reset the activate item, when mouse is moved.
Furthermore, set the active item, when user selects/checks a tree item.

@vercel
Copy link

vercel bot commented Dec 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
tree ❌ Failed (Inspect) Dec 30, 2022 at 11:18PM (UTC)

@benroe89 benroe89 changed the title Activate item on select or check to do keyboard navigation onwards Activate item on select/check to do keyboard navigation onwards Dec 30, 2022
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

Successfully merging this pull request may close these issues.

1 participant