Repository navigation
fix(terminal): no accent outline around a focused terminal, as before 0.5.2 (#3550) - #3664
Conversation
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
Two reviewers at this head: Claude (Opus) CLEAR, Codex Terra CLEAR. Fixes #3550. It removes the three rules #3431 added to It removes a design-pass element, so it needed the owner: he approved removing the ring on 2026-11-11 20:40, after being told it was #3431's keyboard-focus ring and that removal restores the 0.5.1 look (confirmed by the lead, LEAD-2200-MERGE). The MEDIUM below is the trade-off he accepted. Left, sent to the author's lane:
Reports: |
Owner approved removing the ring on 2026-11-11: this takes out a design-pass element (#3431's keyboard-focus ring around the terminal) and brings back the 0.5.1 look.
Fixes #3550
Cause
#3431 (the 0.5.2 design pass) added three rules to
src/components/PaneTerminal.css: an accent outline on.pane-terminal:focus-within, plus inset accent box-shadows on.xtermand.xterm-viewport, as a ringshowing where keys go. Its PR and changelog did not mention it. In Terminal mode it draws a line around the
terminal whenever the terminal has the focus, which is always once you click into it; Safari shows it most
plainly as a blue line under the tab row.
Change
The three rules are removed. Nothing replaces them: the terminal's own cursor shows where keys go, and the
current pane's head already takes the accent and a heavier title (
.pane-frame.is-current). No otherkeyboard-only indicator was added, since any ring on the xterm textarea also shows for a mouse click (a
textarea matches
:focus-visiblehowever it was focused).The cursor is the focus indicator, as in standalone terminals such as Ghostty and iTerm2, which draw no ring
around a focused terminal; this is also how 0.5.1 looked.
Design gate
bun scripts/design-gate-qa.ts --surfaces terminal-view,split-panes --checks focus,contrast, in the CI runnerimage, with main's CSS as the baseline: 4 NEW findings, all
focus-contrastontextarea.xterm-helper-textarea "Terminal input"(1.00:1 < 3:1, the hidden textarea's own outline) onterminal-viewandsplit-panesat 1440, light and dark; nothing RESOLVED. They are the ring this PR removeson purpose, approved by the owner as above, so they are expected, not a reason to hold the PR. CI does not run
the design gate.
Screenshots
A shell pane in an owned herdr test workspace, Terminal mode, the terminal focused, light theme.
Validation
scripts/terminal-keyboard-demo-regression.ts, in the CI runner image (herdr-ci-runner:local): a newassertion that the focused grid draws no outline or inset ring. It fails with main's CSS and the whole script
passes with this change.
bun run check fast: workflow syntax, generated types and themes, typecheck and build ok; unit testsfailed only
server/herdr-core/terminal-env.test.ts, a flake on main at the time, since fixed by test(terminal-env): read the stand-in core's environment only once it runs #3661.