Skip to content

fix: use controlled settings menu - #38

Merged
lawvs merged 2 commits into
mainfrom
fix/settings-dialog-popover
Jul 14, 2026
Merged

fix: use controlled settings menu#38
lawvs merged 2 commits into
mainfrom
fix/settings-dialog-popover

Conversation

@lawvs

@lawvs lawvs commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace the settings <details> disclosure with a native non-modal <dialog popover="auto">
  • anchor the panel to the settings trigger with CSS Anchor Positioning
  • rely on the browser for light dismiss, Escape handling, and focus restoration
  • keep the trigger visible while the popover is open and preserve existing settings behavior

Compatibility

Requires a modern Eagle Chromium runtime with Popover API and CSS Anchor Positioning support. No legacy fallback is included.

Testing

  • pnpm test (71 tests)
  • pnpm type-check
  • pnpm lint:check
  • pnpm format:check
  • pnpm build
  • Chrome interaction check: inside click, outside click, Escape/focus restoration, and anchor alignment

@lawvs
lawvs force-pushed the fix/settings-dialog-popover branch from caeef51 to 415d7fb Compare July 14, 2026 06:39
@lawvs lawvs changed the title fix: use native popover for settings menu fix: use controlled settings menu Jul 14, 2026
@lawvs
lawvs force-pushed the fix/settings-dialog-popover branch 2 times, most recently from 6c53085 to 58d42f4 Compare July 14, 2026 06:53
@lawvs
lawvs force-pushed the fix/settings-dialog-popover branch 9 times, most recently from 05f84d8 to 5fb2c6a Compare July 14, 2026 10:11
@lawvs
lawvs force-pushed the fix/settings-dialog-popover branch from 5fb2c6a to e6b32b3 Compare July 14, 2026 10:19
@lawvs
lawvs merged commit e948f72 into main Jul 14, 2026
1 check passed
@lawvs
lawvs deleted the fix/settings-dialog-popover branch July 14, 2026 10:24
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