feat(modal): cap mobile height, pin chrome, restore focus to trigger #268
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-264-modal-mobile-height-focus-restore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Render the open modal as a child component (ModalDialog) that mounts only while open, so use_drop fires on every close path (Esc, backdrop, X, Cancel, or a parent-driven close) to restore focus to the control that opened it. The trigger is captured on first render, before the dialog steals focus on mount.
Lay the panel out as a flex column capped at max-h-[90vh]: the header and footer stay pinned (flex-shrink-0) while only the body scrolls (flex-1 min-h-0 overflow-y-auto). Large modals are now usable on small screens with no double-axis scroll.
#MAPPS-264