From 1207cfe71ec23efbe6c97f8c10b4c2bbf733e42b Mon Sep 17 00:00:00 2001 From: Reid Barber Date: Wed, 24 Sep 2025 16:22:58 -0500 Subject: [PATCH] docs: clarify toast close button placement --- packages/react-aria-components/docs/Toast.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-aria-components/docs/Toast.mdx b/packages/react-aria-components/docs/Toast.mdx index 605fde5f6a9..5da7451da69 100644 --- a/packages/react-aria-components/docs/Toast.mdx +++ b/packages/react-aria-components/docs/Toast.mdx @@ -184,7 +184,7 @@ There is no built in way to display toast notifications in HTML. `` -A `` is an [ARIA landmark region](https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/) labeled "Notifications" by default. A `` accepts a function to render one or more visible toasts, in chronological order. When the limit is reached, additional toasts are queued until the user dismisses one. Each `` is a non-modal ARIA [alertdialog](https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/), containing the content of the notification and a close button. +A `` is an [ARIA landmark region](https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/) labeled "Notifications" by default. A `` accepts a function to render one or more visible toasts, in chronological order. When the limit is reached, additional toasts are queued until the user dismisses one. Each `` is a non-modal ARIA [alertdialog](https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/), containing the content of the notification and a close button. The toast's content gets announced by screen readers when the toast appears, so it is recommended to render the close button as a sibling of `` instead of inside it, but this is not a requirement. Landmark regions including the toast container can be navigated using the keyboard by pressing the F6 key to move forward, and the Shift + F6 key to move backward. This provides an easy way for keyboard users to jump to the toasts from anywhere in the app. When the last toast is closed, keyboard focus is restored.