From 74a47a3b1d4c5c4ea26563096e7bf9571b89d02a Mon Sep 17 00:00:00 2001 From: adonis Date: Wed, 30 Oct 2024 13:20:59 -0500 Subject: [PATCH] fix(a11y): increase toast timeout to 10s for WCAG compliance --- src/components/alerts/toast.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/alerts/toast.tsx b/src/components/alerts/toast.tsx index 076968f..7a333b2 100644 --- a/src/components/alerts/toast.tsx +++ b/src/components/alerts/toast.tsx @@ -146,13 +146,19 @@ export const Toasts: React.FC<{ children: React.ReactNode }> = ({ children }) => [sortToasts], )} > - + {children} {Array.from(toasts).map(([key, toast]) => ( { if (!open) { toastElementsMapRef.current.delete(key);