Toast
scroll issue
#1694
-
Hey, all! We've noticed an issue with the
I've recreated the issue in a CodeSandbox here. The This is currently happening in our application and, though it isn't a breaking issue and happens only with edge cases, it would be great to figure out a workaround/solution whenever possible. Please let me know if I can provide any further details! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @HartiganHM, I'm not seeing Toast imported or used in the example linked above. Did you make sure to save the changes? (Open it in incogneto to verify) |
Beta Was this translation helpful? Give feedback.
-
Hi again @HartiganHM, Upon looking into this and chatting with the team, this is an unfortunate side effect of the design of toasts that we can't really change. The way Toasts are designed is that, for accessibility, they steal focus when they appear and restore focus when they are dismissed. While they're visible, you scroll the page and when it is dismissed, upon restoring focus, the browser naturally jumps back to the focused element to bring it into view. |
Beta Was this translation helpful? Give feedback.
Hi again @HartiganHM,
Upon looking into this and chatting with the team, this is an unfortunate side effect of the design of toasts that we can't really change. The way Toasts are designed is that, for accessibility, they steal focus when they appear and restore focus when they are dismissed. While they're visible, you scroll the page and when it is dismissed, upon restoring focus, the browser naturally jumps back to the focused element to bring it into view.