Modal Drawer Dialog UI Pitfalls

Use when a modal, dialog, drawer, side panel, bottom sheet or confirmation prompt is written or reviewed in a web application, whatever the framework: focus moved in on open, trapped, and returned to the trigger on close, Escape and backdrop dismissal, scroll lock and layout shift, stacked dialogs and layered popups, the native dialog element against a hand-built one, dirty-state confirmation before losing a form, mobile and small-screen behaviour, dialogs that are addressable by URL and survive reload and the back button, plus the tests that catch them.

techmefr Updated

File contents

techmefr/mentis commit 5c02f9b1fa

Frequently asked questions

npx get-skill add techmefr/modal-drawer-dialog-ui-pitfalls