Skip to content

fix: note toolbar floats above the full-size overlay, and pressing it keeps the edit alive - #532

Merged
alicoding merged 1 commit into
mainfrom
fix/overlay-note-toolbar
Aug 31, 2026
Merged

fix: note toolbar floats above the full-size overlay, and pressing it keeps the edit alive#532
alicoding merged 1 commit into
mainfrom
fix/overlay-note-toolbar

Conversation

@alicoding

Copy link
Copy Markdown
Owner

Follow-up to goal 0253 (owner-reported on the installed build): the floating selection toolbar never appeared in the full-size note overlay.

Two defects, both fixed:

  1. Buried under the Dialog — the toolbar's body-level element sat at z-index: 100; Primer's portal root (#__primerPortalRoot__, every Dialog) sits at 1200. The toolbar existed with data-show=true yet the dialog surface painted over it and swallowed its clicks. Raised to 1300 — topmost is safe since it only exists while its editor has focus.
  2. Latent behind itMarkdownNoteField's outside-press commit lacked the [data-milkdown-selection-toolbar] exclusion AtlasStickyNode already carries, so once visible, a toolbar press would have committed the overlay edit closed before the format applied.

Regression e2e (atlas-note-formatting.spec.ts) hit-tests the toolbar's own center via elementFromPoint — Playwright visibility was true throughout the bug, so visibility alone can't pin it — and asserts Bold applies with the editor still mounted, surviving into both the overlay and the committed sticky.

Verified live via server-mode probe: toolbar on top of the dialog, Bold round-trips.

🤖 Generated with Claude Code

https://claude.ai/code/session_012im1JxQQV2ahnXzZDdVmZq

…g it keeps the edit alive

The selection toolbar's body-level element sat at z-index 100 while
Primer's portal root (every Dialog) sits at 1200 -- in the full-size
note overlay the toolbar existed with data-show=true yet the dialog
painted over it and swallowed its clicks. Raised above the portal
root; topmost is safe since the toolbar only exists while its editor
has focus.

Second latent defect behind it: MarkdownNoteField's outside-press
commit lacked the [data-milkdown-selection-toolbar] exclusion
AtlasStickyNode already carries, so once visible, a toolbar press
would have committed the overlay edit closed before the format
applied. Same exclusion added.

Regression e2e hit-tests the toolbar's center (Playwright visibility
was true throughout the bug) and asserts Bold applies with the editor
still mounted. Follow-up to goal 0253.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012im1JxQQV2ahnXzZDdVmZq
@alicoding
alicoding enabled auto-merge (squash) August 30, 2026 23:58
@alicoding
alicoding merged commit 5176866 into main Aug 31, 2026
30 checks passed
@alicoding
alicoding deleted the fix/overlay-note-toolbar branch August 31, 2026 00:12
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