Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(native): add accessibility role and state to participant list items

Muskan Kumarid05656039551
diff --git a/react/features/participants-pane/components/native/ParticipantItem.tsx b/react/features/participants-pane/components/native/ParticipantItem.tsx
index 5cb2dbde4c..ed7f45bda5 100644
--- a/react/features/participants-pane/components/native/ParticipantItem.tsx
+++ b/react/features/participants-pane/components/native/ParticipantItem.tsx
@@ -108,10 +108,17 @@ function ParticipantItem({
audioIconData?.labelKey ? t(audioIconData.labelKey) : ''
].filter(Boolean).join(', ');
+ const isInteractive = Boolean(onPress);
+ const accessibilityRole = isInteractive ? 'button' : undefined;
+ const accessibilityState = { disabled: !isInteractive };
+
return (
<View style = { styles.participantContainer as StyleProp<ViewStyle> } >
<TouchableOpacity
accessibilityLabel = { accessibleLabels }
+ accessibilityRole = { accessibilityRole }
+ accessibilityState = { accessibilityState }
+ disabled = { !isInteractive }
onPress = { onPress }
style = { styles.participantContent as StyleProp<ViewStyle> }>
<Avatar