Skip to content

fix(css): keep footer button focus ring inside dialog bounds - #22

Merged
vrtmrz merged 1 commit into
vrtmrz:mainfrom
stge4code:patch-1
Aug 11, 2026
Merged

fix(css): keep footer button focus ring inside dialog bounds#22
vrtmrz merged 1 commit into
vrtmrz:mainfrom
stge4code:patch-1

Conversation

@stge4code

Copy link
Copy Markdown
Contributor

fix(css): keep footer button focus ring inside dialog bounds

The Obsidian :focus-visible focus ring (a ~3px box-shadow rendered
outside the button) on the footer CTA button was overflowing the
dialog frame: the button rows place buttons flush against the right
and bottom edges, and .diffzip-sync-progress-dialog additionally
clips overflow via overflow-x: hidden, so the ring was either cut
off or drawn outside the modal.

Add 3px right/bottom padding to the button containers so the focus
ring has room to render fully inside the dialog:

  • .diffzip-sync-footer (selective apply / restore dialogs)
  • .diffzip-sync-progress-buttons (sync progress dialog)

No layout or visual changes beyond the focus state.

fix(css): keep footer button focus ring inside dialog bounds

   The Obsidian :focus-visible focus ring (a ~3px box-shadow rendered
   outside the button) on the footer CTA button was overflowing the
   dialog frame: the button rows place buttons flush against the right
   and bottom edges, and .diffzip-sync-progress-dialog additionally
   clips overflow via overflow-x: hidden, so the ring was either cut
   off or drawn outside the modal.

   Add 3px right/bottom padding to the button containers so the focus
   ring has room to render fully inside the dialog:

   - .diffzip-sync-footer (selective apply / restore dialogs)
   - .diffzip-sync-progress-buttons (sync progress dialog)

   No layout or visual changes beyond the focus state.
@vrtmrz

vrtmrz commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Thank you for the pull request! I confirmed the focus-ring behaviour in a real Obsidian instance, and I am happy to merge this.

@vrtmrz
vrtmrz merged commit e0ab5b2 into vrtmrz:main Aug 11, 2026
1 check passed
@vrtmrz vrtmrz mentioned this pull request Aug 11, 2026
12 tasks
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.

2 participants