Description
apps/web/src/store/toast.ts:19-26's push always fires an unconditional 4-second setTimeout regardless of toast kind or whether the user is currently interacting with it. There's no hover/focus handler anywhere in apps/web/src/components/ui/Toasts.tsx to pause or extend the timer.
An error toast (rendered with role="alert"/aria-live="assertive") gets exactly the same 4-second window as a short success toast, even though error messages tend to be longer and more important to actually read.
Steps to Reproduce
- Trigger an error toast with a longer message (e.g. a failed deposit with a detailed reason).
- Try to read it while hovering over it.
- Observe it disappears at 4 seconds regardless of the hover.
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.
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.