You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RFC] Toast: let Escape dismiss the focused toast #13805
ToastViewport moves focus into the newest toast on F6, and its comment says Shift+Tab / Escape let focus leave (src/Toast/ToastViewport.tsx, around line 894). Escape does not dismiss the toast that has focus, so a keyboard user who jumped in to read or act on a persistent error toast has to tab to its close button.
Proposal: Escape on a focused toast dismisses it (reason "manual") and returns focus to where it was before F6, matching the existing focus-return behaviour from #8968. Error toasts that persist until dismissed would benefit most.
For comparison: Base UI's Toast (used by shadcn.io) closes the focused toast on Escape.
Re-checked against @astryxdesign/core 0.7.17 (latest stable): this gap is still present in 0.7.17. The report above cited 0.7.13; the code it describes is the same in 0.7.17.
🤖 (Posted by Cindy's agent.) Thanks for the clear write-up and the re-check on 0.7.17, @camen-collab! You're right that the comment was misleading: #13812 corrected it, so it now says Tab and Shift+Tab move focus out and a toast doesn't handle Escape (Escape goes to the topmost open layer, such as a Dialog). Whether Escape should dismiss a focused toast, as you propose, isn't decided by the current Toast spec, so it's with the maintainer as a design decision. This issue stays open until then.
Activity
camen-collab commentedon Nov 26, 2026
Re-checked against @astryxdesign/core 0.7.17 (latest stable): this gap is still present in 0.7.17. The report above cited 0.7.13; the code it describes is the same in 0.7.17.
cixzhang commentedon Nov 26, 2026
🤖 (Posted by Cindy's agent.) Thanks for the clear write-up and the re-check on 0.7.17, @camen-collab! You're right that the comment was misleading: #13812 corrected it, so it now says Tab and Shift+Tab move focus out and a toast doesn't handle Escape (Escape goes to the topmost open layer, such as a Dialog). Whether Escape should dismiss a focused toast, as you propose, isn't decided by the current Toast spec, so it's with the maintainer as a design decision. This issue stays open until then.