Modal vs toast
A modal dialog blocks the page until you respond. A toast is a short message that appears without blocking anything and usually fades away on its own.
Example
'Delete this album for good?' needs a modal; 'Photo saved' only needs a toast.
When to use it
Use a modal when people must decide or give information before carrying on. Use a toast for low-stakes confirmations. Errors and messages people must act on should stay on screen, so a vanishing toast is the wrong choice for them.
The evidence 5 sourced claims
Every sentence on this card traces back to one of these claims, each linked to its source. How we research
A dialog is a small, temporary window where people complete a task or give information. Shown as modal, it blocks the rest of the page, which can't be used until the dialog closes; shown as non-modal, the page behind stays usable.
Modal dialogs suit important warnings (for example, before losing unsaved work) and asking for information needed to continue a task. Avoid them for content unrelated to the task (such as newsletter sign-ups), in the middle of checkout, and when people need to see what's behind the dialog to decide.
NN/g describes toasts as small nonmodal popups that appear briefly and disappear automatically; Roselli describes a toast as a short message that often appears only briefly.
NN/g: toast-style notifications are easy to miss and suit low-priority, passive information; they should not be used for errors or information users must act on.
Content that disappears after a set time without user action is a time limit under WCAG Timing Adjustable, which users must be able to turn off, adjust or extend; Roselli applies this to toasts that vanish after a few seconds. W3C APG: alerts should not disappear automatically.