Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/core/src/Toast/ToastViewport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,8 @@ export function ToastViewport({
// F6 jumps focus into the toast viewport — the standard "go to
// notifications" affordance. Focus the first control in the newest toast,
// or the viewport container if none. Toasts are non-modal, so this only
// moves focus in; Shift+Tab / Escape let focus leave naturally.
// moves focus in; Tab and Shift+Tab move focus out. Escape does nothing in
// a toast.
Comment thread
astracat-bot[bot] marked this conversation as resolved.
Resolved
const hasToasts = toasts.length > 0;
useEffect(() => {
if (!hasToasts) {
Expand Down