What is the difference?
Toast vs Modal Dialog
The difference is who owns the decision. A toast tells you something already happened and then leaves; a modal stops everything until you decide. One is transient and non-blocking, the other is persistent and blocking.
Ask yourself one question
If the user never saw this message, would anything break?
تم حذف «تقرير-الربع.pdf»
Toast
الإشعار العائمrole="status"Use it when
Confirming an action that succeeded, announcing a background event, or offering an optional undo for a few seconds. The user keeps working without interruption.
Full entryنشر التغييرات؟
سيصبح الإصدار الجديد مرئياً لكل المستخدمين فور النشر، ويمكنك التراجع خلال ربع ساعة.
Modal Dialog
النافذة الحواريةrole="dialog" aria-modal="true"Use it when
A decision that cannot be skipped: confirming a deletion, accepting terms, or supplying missing data before continuing. The task cannot complete without it.
Full entryThe classic mistake
Delivering a critical error as a toast. The user was looking at another part of the screen, the message expired, and they never learned the operation failed.
Other comparisons