Repository navigation
Conversation
Focus the task heading when details open and keep keyboard navigation inside the dialog, including its dependency menu. Remember the original task across dependency navigation so closing the dialog restores focus to its button or to Search. Cover List, Graph, menu dismissal, deep links and backdrop clicks in the browser.
@vitejs/devtools
@vitejs/devtools-kit
@vitejs/devtools-oxc
@vitejs/devtools-rolldown
@vitejs/devtools-vite
@vitejs/devtools-vite-task
@vitejs/devtools-vitest
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Open a task with Enter in Vite Task's List or Graph. The detail panel covers the other tasks, but the opening button keeps keyboard focus. Pressing Tab and Enter can then select a different task while you are reading the first task's plan.
Give the panel an accessible dialog name and focus its task heading on open. Tab and Shift+Tab cycle inside the dialog. The dependency menu opens inside it, so Escape can dismiss the menu and return to its trigger. Following a dependency focuses the new heading. Closing the dialog returns to the task that opened it, or to Search if that button is unavailable.
Evidence
Five browser tests cover both views, keyboard navigation through a dependency, closing a deep link, and clicking the backdrop. A separate browser check removed the opening button before closing and confirmed that Search received focus.
Merge Danger
Door: two-way
Blast Radius: navigation
The change affects keyboard navigation in Vite Task details. A focus error could make a dependency unreachable or strand focus when the dialog closes. Browser coverage used Chromium.