From 2f58632d624307dd08687279363dca90a196cc1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Dombya?= <135591453+hervedombya@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:07:43 +0200 Subject: [PATCH] Add aria-label to Toast component Refactor aria-label in Toast component --- src/lib/components/toast/Toast.component.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/toast/Toast.component.tsx b/src/lib/components/toast/Toast.component.tsx index ea27cc218f..673869e941 100644 --- a/src/lib/components/toast/Toast.component.tsx +++ b/src/lib/components/toast/Toast.component.tsx @@ -134,6 +134,7 @@ function Toast({ ref={ref} role="status" aria-live="polite" + aria-labelledby={`${status}_toast`} style={{ position: 'fixed', ...(style || positionStyle),