From b5dc35534920f6f11db70ae240f74fdefe4d0614 Mon Sep 17 00:00:00 2001 From: YanJin Date: Thu, 30 May 2024 17:38:33 +0800 Subject: [PATCH] Add the tooltip for the standalone close button in the toast to avoid the warning --- 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 d02a9e782b..ea27cc218f 100644 --- a/src/lib/components/toast/Toast.component.tsx +++ b/src/lib/components/toast/Toast.component.tsx @@ -165,6 +165,7 @@ function Toast({ icon={} onClick={params?.onClose} aria-label="Close" + tooltip={{ overlay: 'Close', placement: 'top' }} />