Skip to content

fix(dialogs): soften the confirm button focus ring - #2049

Merged
l0gicgate merged 1 commit into
lgse:mainfrom
viniciosrab:fix/2048-soften-confirm-focus-ring
Nov 3, 2026
Merged

l0gicgate merged 1 commit into
lgse:mainfrom
viniciosrab:fix/2048-soften-confirm-focus-ring

Conversation

@viniciosrab

@viniciosrab viniciosrab commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

The focused confirm button in action dialogs drew a 2 px solid outline 1 px outside its own 1 px border. On the permanent-delete dialog, where the confirm button has initial focus, that read as a heavy double red border around the most dangerous action.

The confirm button's :focus-visible state now uses a translucent 3 px halo (box-shadow spread, alpha(..., 0.28)) flush against the border instead of a detached solid outline. The danger variant uses @strata_danger, the default variant @strata_accent, so focus stays clearly visible for keyboard users without looking like a second border. The rule is shared with the color chooser's suggested-action button.

Visual evidence

Captured in the QA session (scripts/qa-drive.sh) with the confirm button focused, before (main) and after this change.

Permanently delete (danger variant), button zoomed 3x

Before After
Before: solid red outline outside the red border, a double border After: single red border with a soft red halo

Compress (accent variant), button zoomed 3x

Before After
Before: solid accent outline outside the accent border After: single accent border with a soft halo
Full dialogs
Before After
Permanent delete dialog before Permanent delete dialog after
Compress dialog before Compress dialog after

How to test

  1. Select any file and press Shift+Delete.
  2. Look at the focused "Permanently delete 1 item" button.
  3. Open Compress… on a file and press Tab until "Compress" is focused.

Expected result: Both focused buttons show their single border with a soft, translucent halo of the same color, not a doubled border. Moving focus away removes the halo.

Related issue

Closes #2048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(dialogs): focused permanent-delete button shows a heavy double red border

2 participants