Skip to content

Commit ff606af

Browse files
[bugfix][a11y] video effects item add default aria labels (#3477)
* Add default aria label for video effect items
1 parent cf573bd commit ff606af

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "video-background-effects",
5+
"comment": "Add default aria label for video effect items",
6+
"packageName": "@azure/communication-react",
7+
"email": "edwardlee@microsoft.com",
8+
"dependentChangeType": "patch"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "video-background-effects",
5+
"comment": "Add default aria label for video effect items",
6+
"packageName": "@azure/communication-react",
7+
"email": "edwardlee@microsoft.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/VideoEffects/VideoEffectsItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const _VideoEffectsItem = (props: _VideoEffectsItemProps): JSX.Element =>
149149
}
150150
}
151151
tabIndex={props.disabled ? -1 : 0}
152-
aria-label={props.ariaLabel}
152+
aria-label={props.ariaLabel ?? props.itemKey}
153153
aria-disabled={props.disabled}
154154
role="button"
155155
>

0 commit comments

Comments
 (0)