Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(audio-translation): add accessibility role and selected state to language items (#18104)
Muskan Kumari3313c0ef0ef9
diff --git a/react/features/audio-translation/components/native/AudioTranslationLanguageItem.tsx b/react/features/audio-translation/components/native/AudioTranslationLanguageItem.tsxindex 75d8262f50..376f60a1cd 100644--- a/react/features/audio-translation/components/native/AudioTranslationLanguageItem.tsx+++ b/react/features/audio-translation/components/native/AudioTranslationLanguageItem.tsx@@ -38,6 +38,7 @@ interface IProps {*/const AudioTranslationLanguageItem = ({ code, label, onSelect, selected }: IProps) => {const onPress = useCallback(() => onSelect(code), [ code, onSelect ]);+ const accessibilityState = { selected };return (<View style = { styles.languageItemWrapper as StyleProp<ViewStyle> }>@@ -47,6 +48,9 @@ const AudioTranslationLanguageItem = ({ code, label, onSelect, selected }: IPropsrc = { IconCheck } /> }</View><TouchableHighlight+ accessibilityLabel = { label }+ accessibilityRole = 'button'+ accessibilityState = { accessibilityState }onPress = { onPress }underlayColor = { 'transparent' }><Text style = { [ styles.languageItemText, selected && styles.selectedLanguageItemText ] }>