Skip to content

fix(app): drop the ring around a clicked Settings page and round the split button's ring - #65783

Merged
usrnk1 merged 2 commits into
devfrom
settings-focus-rings
Nov 23, 2026
Merged

usrnk1 merged 2 commits into
devfrom
settings-focus-rings

Conversation

@usrnk1

@usrnk1 usrnk1 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Two focus rings that looked broken.

Settings page ring

A click on a Settings page's text focuses the page itself (SettingsPanel is tabIndex={-1}). On the next key press Chromium matches :focus-visible and the shared ring from base.css wraps the whole page. The scroller clips its top and bottom, so only two blue lines show down the sides.

This is the case #65690 fixed for the timeline and Home: a scroll area keeps focus for keyboard scrolling and draws no ring, and the controls inside show focus. .settings-panel:focus-visible now sets outline: none.

Before After

Open in split button

The split button rounded its corners by clipping (overflow: hidden with a 6px radius), so the square inset ring on each half lost its outer corners. Each half now rounds its own outer corners (logical properties, so RTL follows) and the group no longer clips, so the ring follows the shape. Hover and pressed backgrounds keep the same rounded corners.

Before After
Action
Menu trigger

The split button is only used by Open in (packages/gui-plugins/src/file/open-in-app.tsx); the change is in packages/ui only.

Tests

  • e2e/regression/settings.spec.ts: clicks the Preferences heading, presses ArrowDown, and expects the page focused with no outline. Fails before the fix (solid), passes after.
  • The existing "extensions keeps the empty MCP panel's keyboard ring inside the tabs" still passes; that panel is a Tab stop and keeps its ring.

No flag: a visual fix.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. With the base's settings.css, the new e2e test fails (outline-style was solid), and it passes with this change. My before and after screenshots show the clipped ring down the sides of the Preferences page is gone. The MCP-panel ring test and the extension row alignment test still pass, and the MCP panel keeps its ring because the more specific .settings-subtabs rule overrides the new one. I didn't run the split button in a browser. From the CSS: removing overflow: hidden clips nothing (both halves fit inside the 28px group), and the per-half logical radii keep the hover and pressed backgrounds rounded as before.

Public API: unchanged (only CSS and an e2e test).

No concerns.

Before

After

@usrnk1
usrnk1 enabled auto-merge (squash) November 23, 2026 11:18
@usrnk1
usrnk1 merged commit 2bf2468 into dev Nov 23, 2026
10 checks passed
@usrnk1
usrnk1 deleted the settings-focus-rings branch November 23, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant