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: |
Floating Vue can focus the popup after Escape has already closed it. Tie its deferred autofocus to the current open state so keyboard users can reopen the menu from the same button.
Keep dependency navigation inside the detail dialog and let the focus trap recover focus when a selected control disappears. Remove the menu-specific Escape handler and the heading focus override when switching tasks.
SaKaNa-Y
marked this pull request as ready for review
December 5, 2026 07:20
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 keyboard users can select a related task. Closing the dialog returns focus to the task that opened it, or to Search if that button is unavailable.
Evidence
With a dependency focused in the open menu, one press of Escape closed the dialog and returned focus to the original task. Enter on the same dependency opened its details with focus inside the dialog. Closing those details also returned focus to the original task.
The deep-link test returned focus to Search. Clicking the backdrop returned focus to the clicked task. An earlier Chromium check on
f8505f0ealso removed the opening button before closing and observed focus on Search.Merge Danger
Door: Two-way. A revert restores the previous keyboard behavior.
Blast Radius: Keyboard navigation in Vite Task details, including the dependency menu in List and Graph.
Change Risk: Medium. A focus error can interrupt dependency navigation or leave focus on the wrong control when the dialog closes. Users can close and reopen the dialog. Browser coverage used Chromium.