Skip to content

Commit 06d5835

Browse files
authored
Fix numbers not showing in Voice Access mode when in 'Dynamic' view (#6022)
* Add aria-hidden attribute to LayerHost so that Voice Access can find elements behind it * Change files * Add aria-hidden attribute to LayerHost in focus content layout and speaker video layout for improved Voice Access compatibility
1 parent 32e8db7 commit 06d5835

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "prerelease",
3+
"area": "fix",
4+
"workstream": "A11y",
5+
"comment": "Add aria-hidden attribute to LayerHost so that Voice Access can find elements behind it",
6+
"packageName": "@azure/communication-react",
7+
"email": "miguelgamis@microsoft.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export const FloatingLocalVideoLayout = (props: FloatingLocalVideoLayoutProps):
229229
)}
230230
{overflowGalleryTrampoline(overflowGallery, props.overflowGalleryPosition)}
231231
</Stack>
232-
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} />
232+
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} aria-hidden="true" />
233233
{wrappedLocalVideoComponent}
234234
</Stack>
235235
);

packages/react-components/src/components/VideoGallery/FocusContentLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const FocusedContentLayout = (props: FocusedContentLayoutProps): JSX.Elem
3434

3535
return (
3636
<Stack styles={rootLayoutStyle}>
37-
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} />
37+
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} aria-hidden="true" />
3838
<Stack styles={innerLayoutStyle} tokens={videoGalleryLayoutGap}>
3939
{screenShareComponent ? screenShareComponent : <></>}
4040
</Stack>

packages/react-components/src/components/VideoGallery/SpeakerVideoLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export const SpeakerVideoLayout = (props: SpeakerVideoLayoutProps): JSX.Element
197197
)}
198198
{overflowGalleryTrampoline(overflowGallery, props.overflowGalleryPosition)}
199199
</Stack>
200-
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} />
200+
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} aria-hidden="true" />
201201
{wrappedLocalVideoComponent}
202202
</Stack>
203203
);

0 commit comments

Comments
 (0)