Open compulim opened 4 years ago
Hi, Thank you for your patience, it's been hectic lately.
The difference is that an alert is not the same thing as an alertdialog, where an alertdialog is the same thing as a normal dialog but includes the ability to be announced at the same time. In all other respects however, it must be handled in the same way as a dialog where focus is moved within it when rendered. http://whatsock.com/training/matrices/#alertdialog
This is important, because any dialog that is rendered, whether it is an alertdialog or a dialog, it is rendered as an individual object outside of the regular flow. This means that, if you run a page that opens a dialog or alertdialog when using NVDA in Firefox for example, all of the dialog content, including all active elements and textual content within it, will be undiscoverable if focus is not moved within the dialog. In such cases, this makes all dialog content totally inaccessible unless focus is handled appropriately when the dialog is rendered.
Within recent W3C meetings, the alertdialog role has been reclassed to map to role=dialog to make this association clearer in the future.
In the matrices:
But according to WAI-ARIA practices, https://www.w3.org/TR/wai-aria-practices/#alert. Dialog should not interrupt user workflow and should not affect focus unless it is modal, which should be presented by
alertdialog
instead.