Skip to content

fix(vite-task): keep keyboard focus in task details - #656

Draft
SaKaNa-Y wants to merge 1 commit into
vitejs:mainfrom
SaKaNa-Y:fix/vite-task-detail-focus
Draft

SaKaNa-Y wants to merge 1 commit into
vitejs:mainfrom
SaKaNa-Y:fix/vite-task-detail-focus

Conversation

@SaKaNa-Y

@SaKaNa-Y SaKaNa-Y commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

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

Action in Chromium Before After
Open app build from List, then use Tab Focus stayed on the opener. Tab reached app clean, and Enter opened its plan. The heading received focus. Tab stayed inside details. Escape returned to app build.
Open app build from Graph, then use Tab Tab reached config build, and Enter opened its plan. Tab and Shift+Tab wrapped between dialog controls. Activating Close returned to the graph node.

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.

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.
@pkg-pr-new

pkg-pr-new Bot commented Dec 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools@656

@vitejs/devtools-kit

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-kit@656

@vitejs/devtools-oxc

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-oxc@656

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-rolldown@656

@vitejs/devtools-vite

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-vite@656

@vitejs/devtools-vite-task

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-vite-task@656

@vitejs/devtools-vitest

npm i https://pkg.pr.new/vitejs/devtools/@vitejs/devtools-vitest@656

commit: f8505f0

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