dragoon0x/everything-design-taste

modal-dialog-patterns

Modal dialogs, drawers, sheets, confirmation patterns, and overlay best practices.

First seen Jun 17, 2026

Installation

$ npx skills add dragoon0x/everything-design-taste --skill modal-dialog-patterns

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from dragoon0x/everything-design-taste · top by installs.

npx skills add dragoon0x/everything-design-taste

Browse all from dragoon0x/everything-design-taste

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 11
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,730 B
  • docs SUMMARY.md 111 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Modal Dialog Patterns

When to Use What

Pattern When Why
Modal dialog Confirmation, short forms, critical alerts Blocks interaction, forces decision
Drawer/Sheet Detailed content, filters, secondary forms Slides in, partial page context
Toast/Snackbar Success confirmation, minor notifications Non-blocking, auto-dismisses
Inline expansion Progressive disclosure, details No context switch
Full-page Complex forms, multi-step flows Full context, no overlay

Modal Rules

  1. One primary action per modal. If you need two, use a full page.
  2. Always include a close mechanism: X button, overlay click, Escape key.
  3. Don't stack modals. A modal opening a modal is a UX failure.
  4. Trap focus inside. Tab should cycle within the modal, not escape to background.
  5. Prevent background scroll when modal is open.
  6. Size: As small as possible. Don't use a modal when an inline confirmation works.

Confirmation Dialogs

  • Destructive actions only. Don't confirm saves, non-destructive actions, or navigation.
  • Button labels: specific verbs, not "Yes/No." "Delete Project" / "Keep Project."
  • Red/destructive styling on the destructive action.
  • Never auto-focus the destructive button.

Bottom Sheets (Mobile)

  • Swipe to dismiss. Don't just rely on X button.
  • Snap points: collapsed (peek), half-screen, full-screen.
  • Handle indicator at top (the little bar).
  • Background should dim but remain partially visible for context.