Triage design system v0.13.1-experiment
Home / Components / Menus & overlays

Menus & overlays

Overflow menus, the armed two-step delete, confirm() for one-way actions, drawers and sheets.

Overflow menu

outside click closes (global delegate in shell.js)
destructive actions live in the overflow menu, not as naked buttons; menu items are sentence case
<details class="menu">
  <summary class="btn small">…</summary>
  <div class="menu-pop">
    <button class="menu-item">Duplicate</button>
    <button class="menu-item danger">Delete…</button>
  </div>
</details>

Armed delete — two-step, in place

first click arms red for 4s; Escape / outside click / details close disarms
the armed-delete delegate was NOT in the exported pack (shell.js carried only the chat half); Triage 0.1.0 merges it verbatim into core/shell.js at build time (AUDIT P2, fixed). No confirm() for entity deletes — and armed is not a substitute for feedback.
<button class="btn small danger arm-del" type="submit"
        data-arm-label="Press again to delete rule {{ name }}"
        aria-label="Delete rule {{ name }}">Delete</button>

<!-- inside a menu -->
<button class="menu-item danger arm-del" type="submit"
        data-arm-label="Press again to delete rule {{ name }}">Delete…</button>

One-way actions — native confirm()

six high-stakes actions keep confirm(); the full list is on /foundations/voice
irreversible / security-relevant / wider than the clicked item — arming cannot carry the consequence
<form onsubmit="return confirm('…names the object and the consequence…')">…</form>

Drawers, scrims, sheets

desktop sidebar is fixed; ≤1023px it becomes the off-canvas drawer driven by shell.js + #menuBtn
LayerMechanismz
Sidebar drawer.side.open + .scrim35 / 40
Phone history sheet.sheet-ov + .sheet190
Toasts#toasts300
Ruleanything full-screen must clear 180 or the tab bar punches through—

Sheet dialog variant

Message context

A native dialog anchored to the inline-end edge — full height, its own scroll, inert background, Escape and focus restore still free.
side/bottom sheets are the same dialog contract with positioning classes — no second overlay implementation
<dialog class="dlg sheet-end" id="ctx" aria-labelledby="ctx-t">
  <div class="dlg-h"><h3 id="ctx-t">Context</h3><button class="iconbtn" data-dlg-close>✕</button></div>
  <div class="dlg-b">…</div>
  <div class="dlg-f">…</div>
</dialog>
<!-- .sheet-bottom for phones -->

Popover placement & menus in tables

Row with an actions menu
every .rowacts ships both variants: inline button on desktop, ⋯ menu on touch (≤767px)
<span class="rowacts">
  <button class="btn small ra-inline">Open</button>
  <details class="menu ra-menu"><summary class="btn small">⋯</summary>
    <div class="menu-pop">…</div>
  </details>
</span>
Triage Design System v0.13.1-experiment — the central, app-agnostic UI design authority. Source of truth: /tokens/tokens.json. Showcase chrome only: site/.