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 header navigation and chat recipient buttons (#18040)
Muskan Kumari2bc6d23266c3
diff --git a/react/features/chat/components/native/MessageRecipient.tsx b/react/features/chat/components/native/MessageRecipient.tsxindex 660a6b3c06..0bfcb4735b 100644--- a/react/features/chat/components/native/MessageRecipient.tsx+++ b/react/features/chat/components/native/MessageRecipient.tsx@@ -108,6 +108,8 @@ class MessageRecipient extends AbstractMessageRecipient<IProps> {}) }</Text><TouchableHighlight+ accessibilityLabel = { t('dialog.close') }+ accessibilityRole = 'button'onPress = { this._onResetLobbyMessageRecipient }><Iconsrc = { IconCloseLarge }@@ -131,6 +133,8 @@ class MessageRecipient extends AbstractMessageRecipient<IProps> {}) }</Text><TouchableHighlight+ accessibilityLabel = { t('dialog.close') }+ accessibilityRole = 'button'id = 'message-recipient-cancel-button'onPress = { this._onResetPrivateMessageRecipient }underlayColor = { 'transparent' }>diff --git a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsxindex 410046e5ad..92ae9696dc 100644--- a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx+++ b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx@@ -143,6 +143,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {navigation.setOptions({headerRight: () => (<HeaderNavigationButton+ accessibilityLabel = { t('inviteDialog.send') }disabled = { this._isAddDisabled() }label = { t('inviteDialog.send') }style = { styles.sendBtn }@@ -163,6 +164,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {// eslint-disable-next-line react/no-multi-compheaderRight: () => (<HeaderNavigationButton+ accessibilityLabel = { t('inviteDialog.send') }disabled = { this._isAddDisabled() }label = { t('inviteDialog.send') }onPress = { this._onInvite }diff --git a/react/features/mobile/navigation/components/HeaderNavigationButton.tsx b/react/features/mobile/navigation/components/HeaderNavigationButton.tsxindex 0db3153235..f3ec6568db 100644--- a/react/features/mobile/navigation/components/HeaderNavigationButton.tsx+++ b/react/features/mobile/navigation/components/HeaderNavigationButton.tsx@@ -11,6 +11,11 @@ import { navigationStyles } from './styles';interface IProps {+ /**+ * An accessibility label for the button.+ */+ accessibilityLabel?: string;+/*** Icon button color.*/@@ -52,7 +57,17 @@ interface IProps {twoActions?: boolean;}-const HeaderNavigationButton = ({ color, id, disabled, label, onPress, src, style, twoActions }: IProps) => {+const HeaderNavigationButton = ({+ accessibilityLabel,+ color,+ disabled,+ id,+ label,+ onPress,+ src,+ style,+ twoActions+}: IProps) => {let btnStyle;let labelStyle;@@ -74,6 +89,7 @@ const HeaderNavigationButton = ({ color, id, disabled, label, onPress, src, styl{src ? (<IconButton+ accessibilityLabel = { accessibilityLabel }color = { color }id = { id }onPress = { onPress }@@ -85,6 +101,7 @@ const HeaderNavigationButton = ({ color, id, disabled, label, onPress, src, styl] } />) : (<Button+ accessibilityLabel = { accessibilityLabel }disabled = { disabled }id = { id }labelKey = { label }diff --git a/react/features/mobile/navigation/components/LobbyCloseButton.tsx b/react/features/mobile/navigation/components/LobbyCloseButton.tsxindex 88342fae84..9a020d975a 100644--- a/react/features/mobile/navigation/components/LobbyCloseButton.tsx+++ b/react/features/mobile/navigation/components/LobbyCloseButton.tsx@@ -25,6 +25,7 @@ const LobbyCloseButton = React.memo(() => {if (Platform.OS === 'ios') {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }id = { 'close-screen-button' }label = { t('dialog.close') }onPress = { goBack } />@@ -33,6 +34,7 @@ const LobbyCloseButton = React.memo(() => {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }id = { 'close-screen-button' }onPress = { goBack }src = { IconCloseLarge } />diff --git a/react/features/mobile/navigation/components/ScreenCloseButton.tsx b/react/features/mobile/navigation/components/ScreenCloseButton.tsxindex 53527e0218..df432e2d51 100644--- a/react/features/mobile/navigation/components/ScreenCloseButton.tsx+++ b/react/features/mobile/navigation/components/ScreenCloseButton.tsx@@ -25,6 +25,7 @@ const ScreenCloseButton = React.memo(({ goBack }: IProps) => {if (Platform.OS === 'ios') {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }id = { 'close-screen-button' }label = { t('dialog.close') }onPress = { goBack } />@@ -33,6 +34,7 @@ const ScreenCloseButton = React.memo(({ goBack }: IProps) => {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }id = { 'close-screen-button' }onPress = { goBack }src = { IconCloseLarge } />diff --git a/react/features/prejoin/components/native/Prejoin.tsx b/react/features/prejoin/components/native/Prejoin.tsxindex 4ccec58eef..0287e87696 100644--- a/react/features/prejoin/components/native/Prejoin.tsx+++ b/react/features/prejoin/components/native/Prejoin.tsx@@ -124,6 +124,7 @@ const Prejoin: React.FC<IPrejoinProps> = ({ navigation }: IPrejoinProps) => {if (Platform.OS === 'ios') {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }label = { t('dialog.close') }onPress = { goBack } />);@@ -131,6 +132,7 @@ const Prejoin: React.FC<IPrejoinProps> = ({ navigation }: IPrejoinProps) => {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }onPress = { goBack }src = { IconCloseLarge } />);diff --git a/react/features/prejoin/components/native/UnsafeRoomWarning.tsx b/react/features/prejoin/components/native/UnsafeRoomWarning.tsxindex 5e6eef32f7..2b234a308d 100644--- a/react/features/prejoin/components/native/UnsafeRoomWarning.tsx+++ b/react/features/prejoin/components/native/UnsafeRoomWarning.tsx@@ -53,6 +53,7 @@ const UnsafeRoomWarning: React.FC<IPrejoinProps> = ({ navigation }: IPrejoinPropif (Platform.OS === 'ios') {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }label = { t('dialog.close') }onPress = { goBack } />);@@ -60,6 +61,7 @@ const UnsafeRoomWarning: React.FC<IPrejoinProps> = ({ navigation }: IPrejoinPropreturn (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }onPress = { goBack }src = { IconCloseLarge } />);diff --git a/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.tsx b/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.tsxindex 90f841e58f..13225fc32a 100644--- a/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.tsx+++ b/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.tsx@@ -53,6 +53,7 @@ class StartLiveStreamDialog extends AbstractStartLiveStreamDialog<IProps> {navigation.setOptions({headerRight: () => (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.start') }label = { t('dialog.start') }onPress = { this._onStartPress }twoActions = { true } />diff --git a/react/features/settings/components/native/LanguageSelectView.tsx b/react/features/settings/components/native/LanguageSelectView.tsxindex 031a4af523..e21212a47d 100644--- a/react/features/settings/components/native/LanguageSelectView.tsx+++ b/react/features/settings/components/native/LanguageSelectView.tsx@@ -34,6 +34,7 @@ const LanguageSelectView = ({ goBack, isInWelcomePage }: {const headerLeft = () => (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.Back') }color = { BaseThemeNative.palette.link01 }onPress = { goBack }src = { IconArrowLeft }diff --git a/react/features/settings/components/native/ProfileView.tsx b/react/features/settings/components/native/ProfileView.tsxindex 8d190dc266..bc92b4007c 100644--- a/react/features/settings/components/native/ProfileView.tsx+++ b/react/features/settings/components/native/ProfileView.tsx@@ -76,6 +76,7 @@ const ProfileView = ({ isInWelcomePage }: {const headerLeft = () => (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.Back') }color = { BaseThemeNative.palette.link01 }onPress = { goBack }src = { IconArrowLeft }@@ -87,6 +88,7 @@ const ProfileView = ({ isInWelcomePage }: {if (isAutenticated) {return (<HeaderNavigationButton+ accessibilityLabel = { t('toolbar.logout') }label = { t('toolbar.logout') }onPress = { onLogout }style = { styles.logBtn }@@ -96,6 +98,7 @@ const ProfileView = ({ isInWelcomePage }: {return (<HeaderNavigationButton+ accessibilityLabel = { t('toolbar.login') }label = { t('toolbar.login') }onPress = { onLogin }style = { styles.logBtn }diff --git a/react/features/whiteboard/components/native/Whiteboard.tsx b/react/features/whiteboard/components/native/Whiteboard.tsxindex e25a296a2e..d4eb2fcec8 100644--- a/react/features/whiteboard/components/native/Whiteboard.tsx+++ b/react/features/whiteboard/components/native/Whiteboard.tsx@@ -91,6 +91,7 @@ class Whiteboard extends PureComponent<IProps> {if (Platform.OS === 'ios') {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }label = { t('dialog.close') }onPress = { goBack } />);@@ -98,6 +99,7 @@ class Whiteboard extends PureComponent<IProps> {return (<HeaderNavigationButton+ accessibilityLabel = { t('dialog.close') }onPress = { goBack }src = { IconCloseLarge } />);