Open msftedad opened 2 months ago
To resolve the issue of the incorrect name for the close/dismiss button in the search edit field, update the title
attribute of the DismissButtonWrapper
in NotificationItem.tsx
to provide a more descriptive name. Modify the DismissNotificationItem
component as follows:
const DismissNotificationItem: FC<{
onDismiss: () => void;
}> = ({ onDismiss }) => (
<DismissButtonWrapper
title="Close search"
aria-label="Close search"
onClick={(e: SyntheticEvent) => {
e.preventDefault();
e.stopPropagation();
onDismiss();
}}
>
<CloseAltIcon size={12} />
</DismissButtonWrapper>
);
This change ensures that screen readers announce the button as "Close search".
/code/core/src/manager/components/notifications/NotificationItem.tsx
I am working on this
Describe the bug
Incorrect Name is defined for the close/dismiss button in the search edit filed.
Reproduction link
https://storybook.js.org/addons
Reproduction steps
Expected result: Name should be defined for the close/dismiss button, narrator should announce as close/dismiss button.
https://github.com/storybookjs/storybook/assets/93735775/5952329d-f8c4-4f89-863e-b4215e1f76a3
System
Additional context
No response