Repository navigation
fix(ui): keep focus on the filter box after Clear filters - #278
Merged
Merged
Conversation
Clear filter and Clear filters sit inside the no-match state, so clearing removed the button and focus fell to the page body (WCAG 2.4.3). Components (live and source), Injectors (Clear search and the source Clear filter), Pipes, Signals (live and source) and Store now move focus back to their filter box, the way Routes, Forms and SSR & HTTP already do. Jumping to a hidden signal node still clears the filters without taking focus. Every filter box now clears on Escape: Signals, Store, the route tree, navigations, source routes, Forms fields and Analog routes gain the handler. The text boxes among them become search boxes, like Components and Pipes, so the popup sees a search box with text and keeps the panel open on that Escape. The Components and Injectors keyboard notes mention Escape and where focus goes after clearing.
Contributor
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
This was referenced Oct 11, 2026
The merge with main changed the panel, so the committed bundle is rebuilt to match.
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.
What and why
"Clear filter" / "Clear filters" sit inside the no-match state, so clicking them removed the button and dropped keyboard focus to the page body (WCAG 2.4.3). Components (live and source), Injectors (Clear search and the source Clear filter), Pipes, Signals (live and source) and Store now move focus back to their filter box, matching Routes, Forms and SSR & HTTP.
Every filter box now clears on Escape: Signals, Store, Routes (tree, navigations, source routes), Forms fields and Analog routes. The plain text boxes among them become search boxes like Components and Pipes, so the popup treats Escape there as "clear the box" and keeps the panel open.
The Components and Injectors keyboard notes mention Escape and where focus goes after clearing.
How it was verified
pnpm format:checkpnpm typecheckpnpm test:panel(37 files, 257 tests); the 17 new tests fail without the page changespnpm docs:buildpnpm extension:build,extension/uicommittedpnpm commit:checkScreenshots
None attached.
Notes for reviewers
type="text"totype="search". Their styles do not depend on the type.di-inspector.tslike feat(injectors): add a page picker to the Injectors tab #276, so whichever merges second needs a small merge.Summary by CodeRabbit