From 06800aa5026c8dca7bf789573a4eaf0919708e86 Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 28 Jun 2021 21:46:03 +0100 Subject: [PATCH] Add aria-live attribute to Toaster container to ensure toast is read out by screen readers --- src/components/toaster.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/toaster.tsx b/src/components/toaster.tsx index 250cf5a..25a0ae8 100644 --- a/src/components/toaster.tsx +++ b/src/components/toaster.tsx @@ -87,6 +87,7 @@ export const Toaster: React.FC = ({ className={containerClassName} onMouseEnter={handlers.startPause} onMouseLeave={handlers.endPause} + aria-live="polite" > {toasts.map((t) => { const toastPosition = t.position || position;