Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "File Sharing",
"comment": "Added Aria Roles for A11y",
"packageName": "@azure/communication-react",
"email": "109105353+jpeng-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "File Sharing",
"comment": "Added Aria Roles for A11y",
"packageName": "@azure/communication-react",
"email": "109105353+jpeng-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ const MappedMenuItems = (
<TooltipHost content={menuActions[0].name}>
<ToolbarButton
aria-label={menuActions[0].name}
role="button"
Comment thread
emlynmac marked this conversation as resolved.
icon={menuActions[0].icon}
onClick={() => {
try {
Expand All @@ -203,14 +204,17 @@ const MappedMenuItems = (
<TooltipHost content={localeStrings.attachmentMoreMenu}>
<MenuTrigger>
<ToolbarButton
icon={<Icon iconName="AttachmentMoreMenu" aria-label={localeStrings.attachmentMoreMenu} />}
aria-label={localeStrings.attachmentMoreMenu}
role="button"
icon={<Icon iconName="AttachmentMoreMenu" />}
/>
</MenuTrigger>
</TooltipHost>
<MenuPopover>
<MenuList>
{menuActions.map((menuItem, index) => (
<MenuItem
aria-label={menuItem.name}
key={index}
icon={menuItem.icon}
onClick={async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const _AttachmentCardGroup = (props: _AttachmentCardGroupProps): JSX.Elem
attachmentGroupLayout === _AttachmentCardGroupLayout.Grid ? attachmentCardGirdLayout : attachmentCardFlexLayout
)}
aria-label={ariaLabel}
role="list"
>
{children}
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export const _AttachmentUploadCards = (props: AttachmentUploadCardsProps): JSX.E
key={attachment.id}
menuActions={[
{
name: props.strings?.removeAttachment ?? 'Remove',
name: removeAttachmentButtonString(),
icon: (
<div aria-label={removeAttachmentButtonString()} data-testid="attachment-upload-card-remove">
<div data-testid="attachment-upload-card-remove">
<Icon iconName="CancelAttachmentUpload" className={mergeStyles(actionIconStyle)} />
</div>
),
Expand Down