When a task interrupts the page, which container it gets, what size it opens at, and where its actions live.
✓ Already right
ConfirmDialog — no one-click deletes (Section 2).Modal/Drawer ship the WAI-ARIA behavior for free: role="dialog", focus trap, Esc to close, focus returned to the trigger.✗ Violations
lg, ConfirmDialog default, help drawer min(22rem, 90vw), draft-context drawer min(46rem, 100vw) — four different systems.Group that scrolls with the body; a long form would scroll its submit button out of sight.Same task — edit a draft's context. Question: does focused editing belong in a modal or a drawer?
Modal = a short decision or a reference you read and dismiss (confirm, shortcuts). Drawer = work done against the list behind it (edit a draft, help beside the dashboard). Everything else stays inline or gets its own page.
+ Matches how the dashboard already behaves; keeps the record list visible while you edit.
− Two containers to learn; the boundary needs judgement on new screens.
One container. Drawers retire except the mobile help panel; editing a draft opens the same centered modal as a confirm.
+ One rule, nothing to decide per screen.
− Hides the list you are editing against; a wide form in a centered modal reads cramped, and it is the pattern most often called the overused default.
Same long form. Question: fixed sizes with a pinned footer, or let content decide?
sm confirm · md default form · lg reference and tables. Height caps at calc(100vh - 8rem), the body scrolls, and the action row stays pinned at the bottom.
+ Submit is always reachable; four ad-hoc sizes collapse to three named ones.
− A pinned footer costs vertical space on short dialogs.
Today's behavior, written down: each overlay picks its own width, and the action row is the last thing in the body.
+ Nothing to change; short dialogs stay compact.
− On a long form the submit button sits below the fold, and widths keep drifting apart.
role="dialog", aria-modal, a labelled title, focus trapped inside, Esc closes, focus returns to the trigger. Mantine gives all of this — do not rebuild an overlay by hand.ConfirmDialog: red filled confirm with an explicit verb, default cancel (Section 2).Why Axis 1 Option A (split by context):
Why Axis 2 Option A (ladder + pinned footer):
Rules of record: overlays-system.md.
Design system for a freelance job-alert app. App copies are downstream.