fix(toast): screen readers now announce toasts when presented (#24937)

resolves #22333
This commit is contained in:
Liam DeBeasi
2022-03-15 09:14:48 -04:00
committed by GitHub
parent 4534c8bc0b
commit 8a97f6b5c9
4 changed files with 107 additions and 0 deletions

View File

@ -280,6 +280,8 @@ export class Toast implements ComponentInterface, OverlayInterface {
return (
<Host
aria-live="polite"
aria-atomic="true"
role={role}
tabindex="-1"
{...this.htmlAttributes as any}