Popover API or Dialog API: Which to Choose? | CSS-Tricks
Use the Popover API for regular popovers (auto focus, ARIA, light‑dismiss); reserve the Dialog API’s showModal for true modals (inert background, focus trap).
Use the Popover API for regular popovers (auto focus, ARIA, light‑dismiss); reserve the Dialog API’s showModal for true modals (inert background, focus trap).