Sheets and modals.

A sheet and a modal open on top of the page without losing your place. A confirmation asks for a decision before moving on.

Available Updated December 2, 2026

When to use each

What interrupts goes in a modal; what you edit next to the page, in a sheet; what asks for a decision, in a confirmation.

If you needUseNever
To edit or view something without losing the page behind Sheet: on the right on desktop and from the bottom on the phoneOne sheet on top of another.
A short, focused task, or to read something without leaving Modal: centeredSomething long or with many steps: that’s a page or a sheet.
To decide something before moving on, especially what destroys Confirmation: small, with no ×A message that asks for no decision: that’s a notice.
  • One at a time

    On top of a sheet or a modal goes, at most, one confirmation. If one sheet leads to another, the first one closes.

  • What floats closes first

    A menu or a popover closes when its option opens a dialog.

Anatomy

The same piece in all three: the scrim, the surface, the title, the description, the body and the footer.

PartWhat it is
The scrim Black at 50 % in the Flouvia theme, with no blur. It dims the page and isn’t a layer.
The surface The raised layer, with radius 28. The sheet floats 8 from the edges, with all four corners rounded.
The title Its name, in title2. In a confirmation it’s the question, with its object.
The description One line in secondary text, tied to the surface: screen readers say it on open, before the first field. In a confirmation it says what happens.
Close The ×, on sheets and modals. A confirmation has none: it’s answered with its buttons.
The body What you edit or read, with its own scroll.
The error and the notice Inside, above the footer. The error says what failed; the notice, neutral, what the person cancelled.
The footer Cancel first and the action last, 8 apart; on the phone, in equal halves. With no footer, the × is enough.
The result What happened, with its own title, in the same dialog and in place of everything else. The detail goes in secondary text.

Sizes

PieceWidthsOn the phone
Modal 400, 560 (default) or 720; full for a multistep flowFrom the bottom, with a grabber, up to 92 % of the height; full, the whole screen
Sheet 480 (default) or 640, full heightFrom the bottom, with a grabber
Confirmation 400 for a resource; 560 for what can’t be undoneCentered, 16 from the edges

Close without losing anything

Escape, the ×, Cancel, the scrim and the gesture follow the same rule: they close what has no changes and, with changes, ask first.

  • With changes, it asks

    The sheet nudges toward its edge until it meets the side of the window, without crossing it, and “Discard your changes?” appears on top, with “Keep editing” focused. Two Escapes in a row never lose what you wrote.

  • The scrim, with a whole click

    A click that starts and ends on the scrim closes what has no changes. Selecting text inside and releasing outside doesn’t close.

  • While saving, nothing

    The action shows its loading and is the only thing announced as busy. The ×, Cancel and Escape don’t respond until it’s done.

  • What you only read

    A modal with no form also closes with a click outside.

Focus

  • On open

    Focus goes to the first field; in a confirmation, to Cancel; in what you only read, to the title.

  • Inside

    The page behind turns inert: Tab never reaches it.

  • On close

    Focus returns to the button that opened it, also when a menu option opened it.

When it finishes

The action has three endings: it’s done, it failed or the person cancelled it. Each one is seen, announced and heard in its own way.

EndingWhat happensSound
Done It closes and, once it’s gone, screen readers hear what happened: “Profile saved.” If what happened asks for more, it shows its result in the same dialog.success
Done, with a warning It shows its result: the invite is in place, the email didn’t go out and the link is there to copy.error
Failed It stays open, with the error inside: what happened and what to do.error
Cancelled It stays open, with a neutral notice and no error: “Cancelled. You can try again.” This is what happens when the person cancels their passkey.None
  • The result, with its title

    The title says what happened (“Client deleted.”) and is the dialog’s name while it’s shown; the detail goes below. The box changes height without jumping.

  • What it asks for, first

    If the result asks for something, like copying a link, its button starts with focus. If not, “Done”, which closes.

  • What’s visible isn’t announced

    On close, the surface says what happened only if the page doesn’t show it: a new row in the list already says it.

  • Cancelling isn’t failing

    What the person cancelled isn’t painted red and makes no sound. The dialog stays open to try again.

Confirmations

Friction grows with what’s lost. A destructive action goes in red, with a verb and an object, after Cancel.

What’s lostHow it’s confirmedFocus on open
Nothing: it can be undone It doesn’t ask: it can be undone. When there’s no way to undo, a confirmation with no red.—
One resource, recoverable with work A 400 confirmation: the question with its object and what happens, in one sentence. A reason if it goes in the log.Cancel; with a reason, the reason.
Everything, permanently, at scale A 560 confirmation with the list of what gets deleted, the typed name and a reason. It ends with its result in the same dialog.The reason.
  • Red only for destructive actions

    Remove, revoke, delete and discard go in red. Restore, give back access or send a link use the regular action, even when they ask.

  • A verb and an object

    The action says what it does: “Remove access”, “Delete forever”. Never “Yes”, “OK” or “Accept”.

  • Cancel first

    Cancel goes first and starts with focus: Enter on it destroys nothing.

  • Typing the name, only for what can’t be undone

    If everything asks you to type the name, people type without reading. It goes where the damage is large and permanent.

Do: “Remove Ana Vega’s access?” with “Remove access” in red and Cancel focused.
Don’t: “Are you sure?” with “Yes” and “No”.

Content

PartHow it’s written
The title A short name (“Edit profile”) or, in a confirmation, a question with its object.
The description One sentence: what you need to know, or what happens when you confirm.
The action A verb and an object, in the page’s language: “Save changes”, “Send the invite”.
The error Inside, above the footer: what happened and what to do, in one sentence.
The result Its title says what happened, with a period: “Invite sent.”, “Client deleted.” The detail, in one sentence.
What was cancelled No blame, and the way forward: “Cancelled. You can try again.”

On the phone

  • From the bottom

    Sheets and modals come up from the bottom, full width, as tall as their content and up to 92 %, with their grabber on top. A full modal takes the screen and has none.

  • By hand

    A sheet or a modal comes down from its grabber or its header: past half its fall, it goes; otherwise, it returns.

  • The gesture is never the only way

    The grabber is a 44 button, “Close the sheet” or “Close the dialog”, and the × and Cancel are still there.

  • The footer, in equal halves

    Cancel and the action share the width, half each.

  • Discard?, at the bottom

    “Discard your changes?” comes up as an action sheet, 8 from the edges: the question and “Discard” on one card and, apart and last, “Keep editing”, which starts with focus.

Motion and sound

  • In with sheet, out with ebb

    A sheet arrives from its edge and a modal rises 12 and grows from 0.985; both leave faster than they came. With reduced motion, they fade in place.

  • The result doesn’t jump

    The box changes height with sheet and what happened comes in with ebb. With reduced motion, it only fades.

  • They sound on open and close

    Everywhere, with Onda: open and close. When its action finishes, the action sounds, success or error, never close on top. What was cancelled makes no sound.

  • Sound is never the only signal

    What sounds is also seen and announced: the surface coming in, the button’s loading, the error inside.

Languages

What opens on top speaks the page’s language and, in one read right to left, mirrors.

  • Its own words, in both languages

    “Close”, “Close the sheet”, “Close the dialog”, “Cancel”, “Done”, “Reason”, “Discard your changes?”, “Your changes to ‘…’ will be lost.”, “Keep editing”, “Discard” and “Cancelled. You can try again.” come in Spanish and English; the component writes them in its language. Everything else comes from each page’s copy.

  • Spanish grows

    The modal and the sheet keep their width; what grows is the height. The title wraps to two lines rather than being cut, and the footer action is written short in both languages: verb and object.

  • Right to left

    The sheet lives at the end of the line: right to left, it comes in from the left, leaves that way and leans to that side when it asks. The × moves to the other end of the header and Cancel still comes before the action, in reading order. The × and the grabber don’t mirror: they have no direction.

  • Which way it moves

    What comes in arrives from its edge and leaves the way it came. On the phone, the sheet and the modal rise from the bottom in any language: up and down don’t change with reading.

Changes

  • Sheet and modal, menu and popover · Cuenca

    An action’s three endings: done, failed or cancelled, with the result and its title. On the phone, the modal’s grabber, the footer in equal halves and “Discard?” at the bottom; in the menu, disabled options that take focus.

  • Sheets and modals · Cuenca

    New guide, in design: Cuenca’s sheet, modal and confirmation, how they close without losing anything, where focus goes and the friction of what destroys.