The dialog element
Chris Manning digs into <diaglog>:
A dialog element provides:
- An element that is easy to show and hide, including an
openboolean attribute on the element itself. - Two versions: a standard popover or modal version.
- A ::backdrop pseudo-element for modal types.
- Built-in focus: see dialog focusing steps.
- ARIA role support (
dialogis the implied default). Also accepts the alertdialog role. - A pending stack for multiple dialogs.
- A DOM interface with the
openboolean and methodsshow,
…
The post The dialog element appeared first on CSS-Tricks.




