diff --git a/app/containers/List/ListItem.tsx b/app/containers/List/ListItem.tsx index a39df4a0e5..59b045195e 100644 --- a/app/containers/List/ListItem.tsx +++ b/app/containers/List/ListItem.tsx @@ -1,5 +1,5 @@ import React, { useMemo } from 'react'; -import { I18nManager, StyleProp, StyleSheet, Text, TextStyle, View } from 'react-native'; +import { I18nManager, StyleProp, StyleSheet, Text, TextStyle, View, AccessibilityRole } from 'react-native'; import Touch from '../Touch'; import { themes } from '../../lib/constants'; @@ -69,6 +69,7 @@ interface IListItemContent { heightContainer?: number; styleTitle?: StyleProp; additionalAcessibilityLabel?: string | boolean; + accessibilityRole?: AccessibilityRole; additionalAcessibilityLabelCheck?: boolean; } @@ -89,7 +90,8 @@ const Content = React.memo( heightContainer, styleTitle, additionalAcessibilityLabel, - additionalAcessibilityLabelCheck + additionalAcessibilityLabelCheck, + accessibilityRole }: IListItemContent) => { const { fontScale } = useDimensions(); @@ -120,7 +122,7 @@ const Content = React.memo( testID={testID} accessible accessibilityLabel={handleAcessibilityLabel} - accessibilityRole='button'> + accessibilityRole={accessibilityRole ?? 'button'}> {left ? {left()} : null} diff --git a/app/views/GetHelpView.tsx b/app/views/GetHelpView.tsx index 2a6ae0ecf3..00ac919e70 100644 --- a/app/views/GetHelpView.tsx +++ b/app/views/GetHelpView.tsx @@ -33,6 +33,7 @@ const GetHelpView = () => { } onPress={() => openLink(DOCS_LINK, theme)} testID='settings-view-get-help-documentation' @@ -40,6 +41,7 @@ const GetHelpView = () => { } onPress={() => openLink(ACCESSIBILITY_LINK, theme)} testID='settings-view-get-help-accessibility-statement' @@ -47,6 +49,7 @@ const GetHelpView = () => { } onPress={() => openLink(GLOSSARY_LINK, theme)} testID='settings-view-get-help-glossary' diff --git a/app/views/LegalView.tsx b/app/views/LegalView.tsx index 22acc4d922..1ff9713f15 100644 --- a/app/views/LegalView.tsx +++ b/app/views/LegalView.tsx @@ -7,6 +7,7 @@ import openLink from '../lib/methods/helpers/openLink'; import { useTheme } from '../theme'; import SafeAreaView from '../containers/SafeAreaView'; import * as List from '../containers/List'; +import NewWindowIcon from '../containers/NewWindowIcon'; import { OutsideParamList } from '../stacks/types'; import { IBaseScreen, IApplicationState } from '../definitions'; @@ -41,14 +42,16 @@ const LegalView = ({ navigation }: ILegalViewProps): React.ReactElement => { title='Terms_of_Service' onPress={() => onPressItem({ route: 'terms-of-service' })} testID='legal-terms-button' - showActionIndicator + right={() => } + accessibilityRole='link' /> onPressItem({ route: 'privacy-policy' })} testID='legal-privacy-button' - showActionIndicator + right={() => } + accessibilityRole='link' /> diff --git a/app/views/PushTroubleshootView/components/NotificationDelay.tsx b/app/views/PushTroubleshootView/components/NotificationDelay.tsx index 9b1994de7d..cddadb6301 100644 --- a/app/views/PushTroubleshootView/components/NotificationDelay.tsx +++ b/app/views/PushTroubleshootView/components/NotificationDelay.tsx @@ -16,6 +16,7 @@ export default function NotificationDelay(): React.ReactElement { } testID='push-troubleshoot-view-notification-delay' /> diff --git a/app/views/SettingsView/index.tsx b/app/views/SettingsView/index.tsx index 1bbe646ac5..45140a3602 100644 --- a/app/views/SettingsView/index.tsx +++ b/app/views/SettingsView/index.tsx @@ -269,6 +269,7 @@ const SettingsView = (): React.ReactElement => { } @@ -279,6 +280,7 @@ const SettingsView = (): React.ReactElement => { <> } @@ -289,6 +291,7 @@ const SettingsView = (): React.ReactElement => { }