Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert dialog #182

Open
Yolijn opened this issue Apr 19, 2023 · 0 comments
Open

Alert dialog #182

Yolijn opened this issue Apr 19, 2023 · 0 comments

Comments

@Yolijn
Copy link
Member

Yolijn commented Apr 19, 2023

https://hidde.blog/dialog-modal-popover-differences/#:~:text=it%20makes%20sense.-,Alert%20dialogs

WAI-ARIA defines a specific type of dialog, which is called “alert dialog”. It is meant for dialogs that contain a brief, important message. Their function is to alert the user—the browser will do that by firing a system alert event to accessibility APIs. They are the ARIA-equivalent of the browser alert() dialogs we discussed above.

Examples

After you didn't interact with your online banking environment for 10 minutes, an alert dialog shows and says you will log out in 5 minutes, unless you press “Continue my session”
You're editing some important content and accidentally press Command + W, the shortcut to close the current tab. An alert dialog appears to ask if you really want to “Leave” now or perhaps “Save your changes” first.

Characteristics

Alert dialogs are always modal and have their focus trapped. They also require an accessible name. Like with dialogs, if there is a visible title, associate the title's id with the alert dialog's aria-labelledby attribute. If not, aria-label can also be added to an alert dialog.

@Yolijn Yolijn mentioned this issue Apr 19, 2023
@Yolijn Yolijn changed the title Component: Alert dialog Alert dialog Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: No status
Status: No status
Status: No status
Status: No status
Development

No branches or pull requests

1 participant