Skip to content

Commit 0506f01

Browse files
authored
docs(toast): fix aria-live usage (#2520)
1 parent 5fd7ce4 commit 0506f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/toast.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Toasts are intended to be subtle notifications and are not intended to interrupt
9898

9999
`ion-toast` has `aria-live="polite"` and `aria-atomic="true"` set by default.
100100

101-
`aria-live` causes screen readers to announce the content of the toast when it is presented. However, since the attribute is set to `'polite'`, screen readers generally do not interrupt the current task. Developers can customize this behavior by using the `htmlAttributes` property to set `aria-live` to `'assertive'`. This will cause screen readers to immediately notify the user when a toast is presented, potentially interrupting any previous updates.
101+
`aria-live` causes screen readers to announce the content of the toast when it is updated. However, since the attribute is set to `'polite'`, screen readers generally do not interrupt the current task. Developers can customize this behavior by using the `htmlAttributes` property to set `aria-live` to `'assertive'`. This will cause screen readers to immediately notify the user when a toast is updated, potentially interrupting any previous updates.
102102

103103
`aria-atomic="true"` is set to ensure that the entire toast is announced as a single unit. This is useful when dynamically updating the content of the toast as it prevents screen readers from announcing only the content that has changed.
104104

@@ -497,4 +497,4 @@ export default defineComponent({
497497
<CustomProps />
498498

499499
## Slots
500-
<Slots />
500+
<Slots />

0 commit comments

Comments
 (0)