Toasts sit deliberately below modal backdrops. Any covering layer stamps a marker attribute on its backdrop and a body observer pauses every timer while one is present. Collapsed overflow toasts do not tick either — they wait their turn.
Also called: the alert vanished · I missed the popup · toast timer
- 1A MutationObserver on the body watches for the covering-overlay marker, and is attached only while toasts exist.
- 2Hover, touch, document hidden and overlay presence each hold the timer.
- 3Timers advance on a 200ms tick.
The comment states the goal: 'so nothing expires unseen behind a confirm dialog'. Layering is spelled out — toasts sit at a z-index intentionally below the bell panel, contract modal and confirm dialog.
- Toasts expiring behind modals or in hidden tabs
See it on your own jobs
Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.
or keep browsing features →