From 2a5ac1a6de6315a2e7d9af8c86d132667e3fec4c Mon Sep 17 00:00:00 2001 From: renahlee <renahlee@outlook.com> Date: Thu, 18 May 2023 17:29:46 -0700 Subject: [PATCH] Update labels for avatar --- src/view/com/pager/FeedsTabBarMobile.tsx | 4 ++-- src/view/com/search/HeaderWithInput.tsx | 4 ++-- src/view/com/util/ViewHeader.tsx | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/view/com/pager/FeedsTabBarMobile.tsx b/src/view/com/pager/FeedsTabBarMobile.tsx index 725c4460..b42ffe72 100644 --- a/src/view/com/pager/FeedsTabBarMobile.tsx +++ b/src/view/com/pager/FeedsTabBarMobile.tsx @@ -39,8 +39,8 @@ export const FeedsTabBar = observer( style={styles.tabBarAvi} onPress={onPressAvi} accessibilityRole="button" - accessibilityLabel="Open navigation" - accessibilityHint="Access profile and other navigation links"> + accessibilityLabel="Menu" + accessibilityHint="Access navigation links and settings"> <UserAvatar avatar={store.me.avatar} size={30} /> </TouchableOpacity> <TabBar diff --git a/src/view/com/search/HeaderWithInput.tsx b/src/view/com/search/HeaderWithInput.tsx index 7a9e0cc6..f5829c02 100644 --- a/src/view/com/search/HeaderWithInput.tsx +++ b/src/view/com/search/HeaderWithInput.tsx @@ -56,8 +56,8 @@ export function HeaderWithInput({ hitSlop={MENU_HITSLOP} style={styles.headerMenuBtn} accessibilityRole="button" - accessibilityLabel="Back" - accessibilityHint=""> + accessibilityLabel="Menu" + accessibilityHint="Access navigation links and settings"> <UserAvatar size={30} avatar={store.me.avatar} /> </TouchableOpacity> <View diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx index 97802394..b99c61c2 100644 --- a/src/view/com/util/ViewHeader.tsx +++ b/src/view/com/util/ViewHeader.tsx @@ -65,7 +65,9 @@ export const ViewHeader = observer(function ({ style={canGoBack ? styles.backBtn : styles.backBtnWide} accessibilityRole="button" accessibilityLabel={canGoBack ? 'Back' : 'Menu'} - accessibilityHint=""> + accessibilityHint={ + canGoBack ? '' : 'Access navigation links and settings' + }> {canGoBack ? ( <FontAwesomeIcon size={18}