Skip to content

fix(web): portal the create-vault dialog out of the transformed sidebar - #350

Merged
vineethkrishnan merged 1 commit into
mainfrom
fix/create-vault-dialog-portal
Aug 11, 2026
Merged

fix(web): portal the create-vault dialog out of the transformed sidebar#350
vineethkrishnan merged 1 commit into
mainfrom
fix/create-vault-dialog-portal

Conversation

@vineethkrishnan

Copy link
Copy Markdown
Owner

Problem

Opening New vault from the sidebar rendered the dialog centered inside the sidebar with only the sidebar dimmed, instead of a viewport-centered modal over a full-screen scrim.

Cause

CreateVaultDialog mounts inside the sidebar <aside>, which carries transform / translate-x-* classes for the mobile drawer. A transformed ancestor becomes the containing block for position: fixed descendants, so the fixed inset-0 overlay collapses to the aside's box. Latent since the dialog was introduced; ConfirmDialog had the identical bug and was fixed by portaling in 1.24.1.

Fix

createPortal(..., document.body), exactly matching the ConfirmDialog pattern. No visual or behavioral change beyond correct positioning; Escape/backdrop-close and focus behavior are untouched.

Typecheck clean, 219 web unit tests pass.

The dialog rendered inside the sidebar aside, whose transform (mobile drawer slide) makes it the containing block for fixed descendants, so the overlay dimmed and centered within the sidebar instead of the viewport. Portal to document.body, matching ConfirmDialog.
@vineethkrishnan
vineethkrishnan merged commit d77cfca into main Aug 11, 2026
8 checks passed
@vineethkrishnan
vineethkrishnan deleted the fix/create-vault-dialog-portal branch August 11, 2026 13:17
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