Skip to content

Commit 96910a8

Browse files
committed
feat: add role and aria attributes for screen sharing toggle accessibility
1 parent 9dee47f commit 96910a8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/script/components/calling/CallingCell/CallingControls/CallingControls.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ export const CallingControls = ({
148148
data-uie-value={selfSharesScreen ? 'active' : 'inactive'}
149149
data-uie-enabled={disableScreenButton ? 'false' : 'true'}
150150
title={t('videoCallOverlayShareScreen')}
151+
role="switch"
152+
aria-checked={selfSharesScreen}
151153
disabled={disableScreenButton}
152154
>
153155
{selfSharesScreen ? (

src/script/components/calling/VideoControls/VideoControls.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ export const VideoControls = ({
659659
data-uie-value={selfSharesScreen ? 'active' : 'inactive'}
660660
data-uie-enabled={canShareScreen ? 'true' : 'false'}
661661
data-uie-name="do-toggle-screen"
662+
role="switch"
663+
aria-checked={selfSharesScreen}
662664
title={t('videoCallOverlayShareScreen')}
663665
>
664666
{selfSharesScreen ? (

0 commit comments

Comments
 (0)