From 4ccaa77ad47a12fd61b65f703a2aaaa7e9c161f6 Mon Sep 17 00:00:00 2001 From: Sarah Higley Date: Fri, 16 Jun 2023 12:35:38 -0700 Subject: [PATCH] fix: Alert example missing aria-label for icon (#28234) --- .../react-alert/stories/Alert/AlertAction.stories.tsx | 3 ++- .../react-alert/stories/Alert/AlertAvatar.stories.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-components/react-alert/stories/Alert/AlertAction.stories.tsx b/packages/react-components/react-alert/stories/Alert/AlertAction.stories.tsx index 3458c4dea1f502..b220aaa5a79e90 100644 --- a/packages/react-components/react-alert/stories/Alert/AlertAction.stories.tsx +++ b/packages/react-components/react-alert/stories/Alert/AlertAction.stories.tsx @@ -11,7 +11,8 @@ export const Action = () => ( , + icon: , + 'aria-label': 'dismiss message', }} > Save failed diff --git a/packages/react-components/react-alert/stories/Alert/AlertAvatar.stories.tsx b/packages/react-components/react-alert/stories/Alert/AlertAvatar.stories.tsx index 70856a17ad8f20..7dc6449b48288c 100644 --- a/packages/react-components/react-alert/stories/Alert/AlertAvatar.stories.tsx +++ b/packages/react-components/react-alert/stories/Alert/AlertAvatar.stories.tsx @@ -11,6 +11,7 @@ export const Avatar = () => ( , + 'aria-label': 'dismiss message', }} avatar={{ name: 'John Smith', size: 24, color: 'dark-green' }} >