Dialog
Represents a part of an application that a user interacts with to perform a task.
This component was tested and signed off by Applause (external accessibility specialists).
- A Dialog should have a heading. If for some reason it doesn’t, them make sure to add
aria-labelto the dialog element. - The dialog’s role is
dialog. When opened as a modal (via showModal) it addsaria-modalto the dialog.
- If you disable the built-in dismiss methods, you must ensure that the way to close the dialog remains accessible.
- When setting a new value for
--dialog-min-inline-sizeand--dialog-max-inline-sizetake in consideration if different values are needed for mobile, and that they are not causing horizontal scroll there.
Dialog: Manual accessibility test