Skip to content

Commit 83e2145

Browse files
[A11y] Fix an issue where attachments card group had incorrect children roles (#5704)
1 parent 57a7c04 commit 83e2145

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "A11y",
5+
"comment": "Fix an issue where attachments card group had incorrect children roles",
6+
"packageName": "@azure/communication-react",
7+
"email": "[email protected]",
8+
"dependentChangeType": "patch"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "A11y",
5+
"comment": "Fix an issue where attachments card group had incorrect children roles",
6+
"packageName": "@azure/communication-react",
7+
"email": "[email protected]",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/Attachment/AttachmentCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export const _AttachmentCard = (props: _AttachmentCardProps): JSX.Element => {
9999
}, [attachment]);
100100
return (
101101
<div data-is-focusable={true}>
102-
<Announcer announcementString={announcerString} ariaLive={'polite'} />
103102
<Card
104103
className={mergeClasses(
105104
attachmentCardStyles.root,
@@ -111,6 +110,7 @@ export const _AttachmentCard = (props: _AttachmentCardProps): JSX.Element => {
111110
aria-label={attachment.name}
112111
data-testid={'attachment-card'}
113112
>
113+
<Announcer announcementString={announcerString} ariaLive={'polite'} />
114114
<CardHeader
115115
className={attachmentCardStyles.content}
116116
image={{

0 commit comments

Comments
 (0)