Modal dialogs create overlays on open modal windows that provide options for a user to control the closing behavior of a dialog while interacting with it.
Users can launch multiple dialogs simultaneously or one above the other based on their z-index (z-depth) to make additional dialogs (nested modal dialogs).
A variety of smooth, built-in animations are available to configure for the opening and closing of modal dialogs. They perform based on CSS3 animation from the Animation library.
The modal dialog can be closed by clicking on a close icon, with an overlay click, or by pressing the ESC key. Users can restrict the closing behavior of a dialog based on its callback function parameters, also.
Fully supports WAI-ARIA accessibility, which helps dialogs be accessed by on-screen readers and assistive devices.
Follows WAI-ARIA Best Practices for implementing keyboard interaction.
The UI element visuals such as foreground color, background color, line spacing, text, and images were designed based on the WCAG 2.0 standard.
Developers can control the appearance and behaviors of a dialog, including its positioning, content, and animation, using a rich set of APIs.