Archive this session?

It keeps its findings, but they stop showing up in the inbox.

<dialog class="dialog" aria-labelledby="t">
  <div class="dialog-header">
    <h2 class="dialog-title" id="t">Archive this session?</h2>
    <p class="dialog-description">It keeps its findings, but they stop showing up in the inbox.</p>
  </div>
  <div class="dialog-footer">
    <button class="btn btn-outline">Cancel</button>
    <button class="btn">Archive</button>
  </div>
  <button class="dialog-close" aria-label="Close">…</button>
</dialog>

Open it with dialog.showModal(). It also styles any role="dialog" popup from a headless library (add data-open while it's open).

Part Value
.dialog popover fill, 14px radius, 16px padding, depth-floating. 320px wide on phones, 448px from 640px
Height Never taller than the viewport minus 32px. It scrolls inside, so a tall form on a short phone can still reach its buttons
Backdrop Black at 10% with a 4px blur. The dialog lifts; the page isn't punished
Open 100ms fade and scale up from 95%
.dialog-title 16px medium
.dialog-description 14px muted, balanced wrapping
.dialog-footer A muted strip running edge to edge. Buttons right-aligned in a row; on phones they stack with the primary action at the bottom, nearest the thumb
.dialog-close A 28px ghost square at the top right

The title is a question or an outcome ("Archive this session?"). The confirm button repeats the verb ("Archive"), never "OK" or "Yes".

sesan.studio