From 6eea327562408b9c07ec0e8f32d0bfd093410bb0 Mon Sep 17 00:00:00 2001 From: fc-santos Date: Fri, 10 Jan 2025 15:35:45 -0500 Subject: [PATCH] chore: add accessibilityRole header to app guide/tour and screens Signed-off-by: fc-santos --- .../legacy/core/App/components/misc/EmptyListContacts.tsx | 4 +++- .../legacy/core/App/components/modals/AppGuideModal.tsx | 2 +- .../core/App/components/modals/CameraDisclosureModal.tsx | 2 +- packages/legacy/core/App/components/tour/TourBox.tsx | 7 ++++++- packages/legacy/core/App/screens/Tours.tsx | 4 +++- packages/legacy/core/App/screens/WhatAreContacts.tsx | 8 ++++---- .../components/__snapshots__/TourBox.test.tsx.snap | 1 + .../__snapshots__/CameraDisclosureModal.test.tsx.snap | 1 + .../screens/__snapshots__/WhatAreContacts.test.tsx.snap | 1 + 9 files changed, 21 insertions(+), 9 deletions(-) diff --git a/packages/legacy/core/App/components/misc/EmptyListContacts.tsx b/packages/legacy/core/App/components/misc/EmptyListContacts.tsx index d0e3c8feae..eef08f255c 100644 --- a/packages/legacy/core/App/components/misc/EmptyListContacts.tsx +++ b/packages/legacy/core/App/components/misc/EmptyListContacts.tsx @@ -42,7 +42,9 @@ const EmptyListContacts: React.FC = ({ navigation }) => { return ( - {t('Contacts.EmptyList')} + + {t('Contacts.EmptyList')} + {t('Contacts.PeopleAndOrganizations')} diff --git a/packages/legacy/core/App/components/modals/AppGuideModal.tsx b/packages/legacy/core/App/components/modals/AppGuideModal.tsx index aeb08c0d94..cbccf4f269 100644 --- a/packages/legacy/core/App/components/modals/AppGuideModal.tsx +++ b/packages/legacy/core/App/components/modals/AppGuideModal.tsx @@ -84,7 +84,7 @@ const AppGuideModal: React.FC = ({ - + {title} diff --git a/packages/legacy/core/App/components/modals/CameraDisclosureModal.tsx b/packages/legacy/core/App/components/modals/CameraDisclosureModal.tsx index 71da3378c5..2a8ac3465a 100644 --- a/packages/legacy/core/App/components/modals/CameraDisclosureModal.tsx +++ b/packages/legacy/core/App/components/modals/CameraDisclosureModal.tsx @@ -80,7 +80,7 @@ const CameraDisclosureModal: React.FC = ({ requestCa )} - + {t('CameraDisclosure.AllowCameraUse')} {t('CameraDisclosure.CameraDisclosure')} diff --git a/packages/legacy/core/App/components/tour/TourBox.tsx b/packages/legacy/core/App/components/tour/TourBox.tsx index 083394300e..0ddd08f694 100644 --- a/packages/legacy/core/App/components/tour/TourBox.tsx +++ b/packages/legacy/core/App/components/tour/TourBox.tsx @@ -179,7 +179,12 @@ export function TourBox(props: TourBoxProps): ReactElement { > - + {title} diff --git a/packages/legacy/core/App/screens/Tours.tsx b/packages/legacy/core/App/screens/Tours.tsx index 7e8e89630e..3328b20c68 100644 --- a/packages/legacy/core/App/screens/Tours.tsx +++ b/packages/legacy/core/App/screens/Tours.tsx @@ -61,7 +61,9 @@ const Tours: React.FC = () => { const { value, bool }: Option = option return ( - {value} + + {value} + = ({ navigation }) => { }) const goToContactList = () => { - navigation - .getParent() - ?.navigate(Stacks.ContactStack, { screen: Screens.Contacts }) + navigation.getParent()?.navigate(Stacks.ContactStack, { screen: Screens.Contacts }) } const bulletPoints = [ @@ -59,7 +57,9 @@ const WhatAreContacts: React.FC = ({ navigation }) => { automaticallyAdjustContentInsets={false} showsHorizontalScrollIndicator={false} > - {t('WhatAreContacts.Title')} + + {t('WhatAreContacts.Title')} + {t('WhatAreContacts.Preamble')} {bulletPoints} diff --git a/packages/legacy/core/__tests__/components/__snapshots__/TourBox.test.tsx.snap b/packages/legacy/core/__tests__/components/__snapshots__/TourBox.test.tsx.snap index a0970ccd64..5b0324bae5 100644 --- a/packages/legacy/core/__tests__/components/__snapshots__/TourBox.test.tsx.snap +++ b/packages/legacy/core/__tests__/components/__snapshots__/TourBox.test.tsx.snap @@ -32,6 +32,7 @@ exports[`TourBox Component Renders properly with defaults 1`] = ` } >