Skip to content

Dialogs: Cancel has a fill of its own, and the focus ring waits for the keyboard - #801

Open
kovsu wants to merge 1 commit into
athasdev:mainfrom
kovsu:dialog-button-fill
Open

kovsu wants to merge 1 commit into
athasdev:mainfrom
kovsu:dialog-button-fill

Conversation

@kovsu

@kovsu kovsu commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

In the dark theme, Cancel in a confirm dialog had no visible fill next to Delete's soft red one, and a blue pill-shaped focus ring sat under it as soon as the dialog opened. Dialog buttons now get a fill tinted from the foreground, the same way Delete's fill is tinted red, and the focus ring is a 2px outline that only appears after Tab or an arrow key.

How to test

  1. In the dark theme, right-click a session in the sidebar and choose Delete: Cancel and Delete have the same shape, each with its own soft fill, and no ring shows.
  2. Press Tab or the arrow keys: a 2px ring follows the focus, with the same corner as the button.

Screenshots

BeforeAfter
CleanShot 2026-11-24 at 10 57 14@2x CleanShot 2026-11-24 at 11 50 12@2x

Checklist

  • cargo check --workspace --all-targets and the changed crates' tests pass
  • I have read the Contributor License and Feedback Agreement and agree to it for this and my later contributions.

…he keyboard

In the dark theme the Delete Session dialog set a soft red Delete beside a
Cancel with no fill at all: the Default button's accent grey sits at or under
the overlay's own tone, so Cancel was only its label. And the focus ring, a 2px
spread shadow on a fully rounded wrapper, painted a blue pill under that
translucent fill the moment the dialog opened.

A button on `Plane::Overlay` tints the foreground for its neutral fill, as
Destructive tints its red, so the two read as a pair on the card in either
theme. The alert dialog's buttons and the prompt dialog's Cancel sit on it.

The ring is a 2px border on the button's own corner, and it shows once Tab or
an arrow key has moved the focus, as `:focus-visible` did. Opened by mouse,
Cancel is still the default (Return cancels) but reads as just a button.
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