Repository navigation
Inspectors: detach and attach with small icons instead of words (#722) - #726
Merged
Merged
Conversation
The Detach button of the floating window's bar and the Attach button of a detached panel's header become 16 px inline SVG icons in currentColor: a frame with an arrow leaving it to the top right, and an arrow entering it. Their aria-label and title say the whole action; a greyed Detach keeps its name and its tooltip still gives the reason. The class names stay.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
AM-L
approved these changes
Nov 28, 2026
…r-attacher # Conflicts: # js/developer/environment/bundles.json # js/developer/environment/inspector.mjs
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.
Closes #722.
Why
The inspectors (ADR-027) detach and attach a panel with two text buttons, Detach in the floating window's title bar and Attach in a detached panel's header, which take room in narrow bars beside the
×close icon and the panel's controls.What changes
js/developer/environment/menu.mjs:makeMoveButton(page, button, move)draws a 16 px inline SVG incurrentColor(hidden from assistive technologies) and names the button by its action;inspectorMovesholds the two names: "Detach this panel to a window of its own" and "Show this panel in the floating window of the main page". Both inspector modules already import this file.inspector-host.mjs: the detach button (webfront-inspector-detach) is a frame with an arrow leaving it to the top right, in the same 32 px button as×with the same focus outline. Itsaria-labelis always the action; when no detached container reaches the inspectors, it stays visible, greyed (aria-disabled), and itstitlestill gives the reason.inspector.mjs: the attach button (attach) of a detached panel is an arrow entering a frame, at least 32 px square, with the header's focus outline.MinimalCoreAssetsunchanged).docs/DEVELOPER_ENVIRONMENT.mdnames the buttons by their icon and tooltip; changelog entry.bundles.json: the checksums of the three changed sources, fromwf run build build-distribution --refresh-bootstrap(the bundles themselves are unchanged).distribution.jsonis already at 1.2.2, ahead of the 1.2.1 pin, so no version change is needed;DeveloperReleaseData.hppkeeps pinning the published 1.2.1.Tests
wf test --manifest-dir js/developer, 431 specs): the icons, their accessible names and tooltips, and the greyed detach button that keeps its name while its tooltip gives the reason.DeveloperBrowserIntegration(test/web/developer-specs.mjs): the detach icon's accessible name in the floating window (greyed with its reason under CEF, enabled with a native secondary window), and the attach icon of a detached panel (the Packages panel in its own page).-L web-integrationwith CEF under Xvfb.