-
Notifications
You must be signed in to change notification settings - Fork 70
[Enhancement] Toast auto-dismiss doesn't pause on hover or focus #653
Copy link
Copy link
Closed
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programenhancementNew feature or requestNew feature or requestfrontendInvolves React components, Tailwind styling, or Next.js pagesInvolves React components, Tailwind styling, or Next.js pagestrivialSelf-contained task, completable in < 2 hours with no deep protocol knowledge requiredSelf-contained task, completable in < 2 hours with no deep protocol knowledge requireduiPurely presentational work — layout, spacing, visual polishPurely presentational work — layout, spacing, visual polish
Description
Activity
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programenhancementNew feature or requestNew feature or requestfrontendInvolves React components, Tailwind styling, or Next.js pagesInvolves React components, Tailwind styling, or Next.js pagestrivialSelf-contained task, completable in < 2 hours with no deep protocol knowledge requiredSelf-contained task, completable in < 2 hours with no deep protocol knowledge requireduiPurely presentational work — layout, spacing, visual polishPurely presentational work — layout, spacing, visual polish
Description
apps/web/src/store/toast.ts:19-26'spushalways fires an unconditional 4-secondsetTimeoutregardless of toast kind or whether the user is currently interacting with it. There's no hover/focus handler anywhere inapps/web/src/components/ui/Toasts.tsxto pause or extend the timer.An
errortoast (rendered withrole="alert"/aria-live="assertive") gets exactly the same 4-second window as a shortsuccesstoast, even though error messages tend to be longer and more important to actually read.Steps to Reproduce
Expected Behavior
Hovering or focusing a toast should pause its dismiss timer; moving away or blurring resumes (or restarts) it.
Actual Behavior
The timer runs unconditionally to completion no matter what the user is doing.