Skip to content

fix(ui): one keyboard focus ring everywhere, inset where an edge clips - #262

Merged
Hona merged 4 commits into
devfrom
ws8/focus-ring
Nov 20, 2026
Merged

Hona merged 4 commits into
devfrom
ws8/focus-ring

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Ports the ring half of anomalyco/opencode#64909 and all of #65084: every control draws one keyboard focus ring, 2 pt of border-focus (blue-500 light, blue-400 dark), 2 pt out by default and 2 pt in where an edge clips.

  • One place: opencode_ui::focus (WIDTH, OFFSET, INSET, color) and FocusExt::{focus_default, focus_inset}, so each control is one call. The view's default ring moves from 2.5 to 2 pt out.
  • Theme: theme.json and themes.json regenerated from upstream with tools/theme.py and tools/themes.ts: every dark border-focus changes, nothing else. The kit's controls take the app's border-focus in every theme.
  • Inside: titlebar buttons and plugin titlebar items (#65084), sidebar rows, headers and Show more, inbox cards, Home's rows and scroll viewport, the timeline viewport, side panel tabs, the narrow drawer, Connect's rows, the question dock's progress, the Find bar's close button.
  • Outside: Send, timeline event rows.
  • Session title: a button inside its heading, a Tab stop; a rename returns focus to it.

Before (baseline 757edbae) | after, dark and light, 1x and 1.5x:

Checks: scripts/guardrails 5/5, check --workspace, web.ps1 -Check. Not in this PR: top-tab strip tabs (Rune #1296), settings cards, timeline group triggers, keyboard-only composer and field rings (Rune).

Hona added 4 commits November 20, 2026 18:28
Ports the ring half of anomalyco/opencode#64909 and #65084.

- opencode_ui::focus holds the ring: 2 pt of border-focus, 2 pt out by default, 2 pt in
  (focus_inset) for full-width rows, tabs, scroll viewports and controls flush with a clipping
  edge. FocusExt makes each control's choice one call in its builder.
- The view's default ring moves from 2.5 to 2 pt out (button.css, icon-button.css).
- Dark themes ring in blue-400 (theme.json and themes.json regenerated from upstream), and the
  kit's controls take the app's border-focus in every theme.
- Inset rings: titlebar buttons and plugin titlebar items (#65084), sidebar session rows, group
  headers and Show more, inbox cards and headers, Home's project and session rows and its scroll
  viewport, the timeline viewport, side panel tabs, the narrow tabs trigger and drawer, Connect's
  provider, account and model rows, the question dock's progress and 2 pt option ring, the Find
  bar's close button.
- Send keeps the outside ring; the composer's toolbar keeps the inside one.
- The session title is a button inside its heading, a Tab stop, and a rename hands focus back
  to it.
@Hona
Hona merged commit e6fe564 into dev Nov 20, 2026
3 checks passed
@Hona
Hona deleted the ws8/focus-ring branch November 20, 2026 09:13
Hona added a commit that referenced this pull request Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

Hona added a commit that referenced this pull request Nov 20, 2026
…ing (#266)

- Fold verified fleet PRs #247, #251, #252, #253, #254, #255, #256, #257,
  #258, #260, #261, #262, #263, #264, and #265 (Rune #1290 PRE-11 / #1296)
  into docs/upstream-sync/ledger.{json,md}
- Audit upstream anomalyco/opencode through 92d35f8e18 (+9 commits past
  bf683129fa), adding UP-107..UP-113 and assigning UP-106/UP-108/UP-111 to
  BROWSER-UI
- Update scripts/upstream-sync-check.ts to skip pure *.fixture.* test files
  and route browser UI/history vs extensions commits to BROWSER-UI and WS-9
Hona added a commit that referenced this pull request Nov 20, 2026
…mbine, filter, and tear-out (#259)

* feat(tabs): experimental side tab groups with 4-intent drag, dwell combine, filter, and tear-out

* refactor(tab-groups): split drag hit testing below 800-line ceiling

* style(tab-groups): align focus_inset rings with #262
Hona added a commit that referenced this pull request Nov 20, 2026
…ing (#269)

The rest of anomalyco/opencode#64909's rings, on screens that landed since #262.

- Interface and Navigation mode cards: selection is a neutral 2 pt border-strong edge and a 16 pt
  check outside the corner, never the blue focus colour; unselected sketches at 45%; resting
  border border-muted (interface-mode.css).
- Project colour swatches: the chosen one rings in border-inverse; focus is the shared outline.
- Settings project rows: the open button covers the row, so its inset ring is the row's.
- Sidebar pins, pin groups, Recent group headers and its view-options trigger: inset rings.
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