react-magma
react-magma copied to clipboard
Toast: inconsistent timers
------- 1 ------
Description of bug: The toast remains alive for a few seconds after the timer ends
Steps to reproduce:
- Open Toast
- Go to the
Basic Usagesection - Click the
Show Default Toastbutton - In the middle of the toast duration, press the
Tabkey and move the focus to theClosebutton - Wait ~10 seconds
- Move the focus away from the
Closebutton (press theTaborShift + Tabkey) - Wait until the timer circle has finished
- Make sure the toast is still active even when the timer has finished (the circle is not visible)
Expected behavior
- The toast should close when the visual timer has ended (no lag)
------- 2 ------
Description of bug: The toast closes immediately after bug with focus + mouse hover
Steps to reproduce:
- Repeat the first 5 steps from the previous bug
- While keeping the focus on the
Closebutton, hover the mouse cursor over it and then remove it - Note that the toast closes immediately
Expected behavior
- If the toast has focus, the toast should not be dismissed