From be8084ae103064d5680485f25e202c763957f2b4 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 5 Sep 2023 16:55:39 +0100 Subject: [PATCH] Fix mismatching button label for speech recognition (#1372) * Fix mismatching a11y label * Update all new post button labels to match --- src/view/screens/CustomFeed.tsx | 2 +- src/view/screens/Feeds.tsx | 2 +- src/view/screens/Home.tsx | 2 +- src/view/screens/Profile.tsx | 2 +- src/view/shell/desktop/LeftNav.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/view/screens/CustomFeed.tsx b/src/view/screens/CustomFeed.tsx index e2b7e86e..01d499da 100644 --- a/src/view/screens/CustomFeed.tsx +++ b/src/view/screens/CustomFeed.tsx @@ -508,7 +508,7 @@ export const CustomFeedScreenInner = observer( onPress={onPressCompose} icon={} accessibilityRole="button" - accessibilityLabel="Compose post" + accessibilityLabel="New post" accessibilityHint="" /> diff --git a/src/view/screens/Feeds.tsx b/src/view/screens/Feeds.tsx index 1ab59f73..7d45ce4c 100644 --- a/src/view/screens/Feeds.tsx +++ b/src/view/screens/Feeds.tsx @@ -125,7 +125,7 @@ export const FeedsScreen = withAuthRequired( onPress={onPressCompose} icon={} accessibilityRole="button" - accessibilityLabel="Compose post" + accessibilityLabel="New post" accessibilityHint="" /> diff --git a/src/view/screens/Home.tsx b/src/view/screens/Home.tsx index 7262756d..4f1ebe03 100644 --- a/src/view/screens/Home.tsx +++ b/src/view/screens/Home.tsx @@ -298,7 +298,7 @@ const FeedPage = observer( onPress={onPressCompose} icon={} accessibilityRole="button" - accessibilityLabel="Compose post" + accessibilityLabel="New post" accessibilityHint="" /> diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 0b3745c3..a78650b3 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -284,7 +284,7 @@ export const ProfileScreen = withAuthRequired( onPress={onPressCompose} icon={} accessibilityRole="button" - accessibilityLabel="Compose post" + accessibilityLabel="New post" accessibilityHint="" /> diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index eec55ee4..50d482fd 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -177,7 +177,7 @@ function ComposeBtn() { style={[styles.newPostBtn]} onPress={onPressCompose} accessibilityRole="button" - accessibilityLabel="Compose post" + accessibilityLabel="New post" accessibilityHint="">