Builds backdrop, header, body, and footer shell (not yet shown as a promise).
Title, host, and close behavior
Protected ReadonlybackdropFull-screen backdrop containing the dialog panel.
Protected ReadonlybodyScrollable / main content container below the header.
Protected ReadonlydialogDialog panel element.
Protected ReadonlyfooterOptional footer row (e.g. action buttons).
Protected ReadonlytitleTitle text element in the header.
Static ReadonlystyleID of the shared base style element.
Closes the dialog, removes DOM, and resolves the show promise. Safe to call multiple times.
ProtectedfocusFocuses an element after the current microtask (once the dialog is in the DOM).
Element to focus
Returns a promise that resolves when the dialog is closed. Safe to call multiple times; subsequent calls return the same promise.
StaticensureInjects shared dialog chrome CSS once per document.
Framework-free modal dialog base built with pure HTML and CSS.
Subclasses fill bodyEl / footerEl and call show.