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(native): add accessibility labels to search navigation and clear input buttons (#18038)
Muskan Kumari00266f1d6ace
diff --git a/react/features/base/ui/components/native/Input.tsx b/react/features/base/ui/components/native/Input.tsxindex 84f9f11017..46c0f21fe7 100644--- a/react/features/base/ui/components/native/Input.tsx+++ b/react/features/base/ui/components/native/Input.tsx@@ -1,4 +1,5 @@import React, { forwardRef, useCallback, useState } from 'react';+import { useTranslation } from 'react-i18next';import {BlurEvent,FocusEvent,@@ -91,6 +92,7 @@ const Input = forwardRef<TextInput, IProps>(({textContentType,value}: IProps, ref) => {+ const { t } = useTranslation();const [ focused, setFocused ] = useState(false);const handleChange = useCallback((e: NativeSyntheticEvent<TextInputChangeEventData>) => {const { nativeEvent: { text } } = e;@@ -172,6 +174,8 @@ const Input = forwardRef<TextInput, IProps>(({value = { typeof value === 'number' ? `${value}` : value } />{ clearable && !disabled && value !== '' && (<TouchableOpacity+ accessibilityLabel = { t('inputAction.deleteInput') }+ accessibilityRole = 'button'onPress = { clearInput }style = { [ styles.clearButton, customStyles?.clearButton ] as StyleProp<ViewStyle> }><Icondiff --git a/react/features/chat/components/native/ChatSearchBar.tsx b/react/features/chat/components/native/ChatSearchBar.tsxindex 93b2197092..42e511dd7f 100644--- a/react/features/chat/components/native/ChatSearchBar.tsx+++ b/react/features/chat/components/native/ChatSearchBar.tsx@@ -91,6 +91,8 @@ const ChatSearchBar = ({ t }: IProps) => {: t('chat.search.noResults') }</Text><TouchableOpacity+ accessibilityLabel = { t('chat.search.previous') }+ accessibilityRole = 'button'disabled = { !hasMatches }onPress = { _onPrevious }style = { styles.searchBarNavButton as ViewStyle }>@@ -100,6 +102,8 @@ const ChatSearchBar = ({ t }: IProps) => {src = { IconArrowUp } /></TouchableOpacity><TouchableOpacity+ accessibilityLabel = { t('chat.search.next') }+ accessibilityRole = 'button'disabled = { !hasMatches }onPress = { _onNext }style = { styles.searchBarNavButton as ViewStyle }>