diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-03 22:53:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 00:53:49 -0500 |
commit | 011baa78c10cc38d98795fb87a0e54c14a657791 (patch) | |
tree | f79d91de53d00f8019ba77256e630f6acec958bc /src/view/shell/desktop/LeftNav.tsx | |
parent | 0f68e6a6ffca94239630801eaaed9a9531d5cef2 (diff) | |
download | voidsky-011baa78c10cc38d98795fb87a0e54c14a657791.tar.zst |
a11y label cleanup (#576)
Diffstat (limited to 'src/view/shell/desktop/LeftNav.tsx')
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 86f1a3ef3..17d078dc5 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -66,7 +66,7 @@ function BackBtn() { style={styles.backBtn} accessibilityRole="button" accessibilityLabel="Go back" - accessibilityHint="Navigates to the previous screen"> + accessibilityHint=""> <FontAwesomeIcon size={24} icon="angle-left" @@ -102,8 +102,9 @@ const NavItem = observer( style={styles.navItemWrapper} hoverStyle={pal.viewLight} onPress={onPress} + accessibilityRole="tab" accessibilityLabel={label} - accessibilityHint={`Navigates to ${label}`}> + accessibilityHint=""> <View style={[styles.navItemIconWrapper]}> {isCurrent ? iconFilled : icon} {typeof count === 'string' && count ? ( @@ -129,8 +130,8 @@ function ComposeBtn() { style={[styles.newPostBtn]} onPress={onPressCompose} accessibilityRole="button" - accessibilityLabel="New post" - accessibilityHint="Opens post composer"> + accessibilityLabel="Compose post" + accessibilityHint=""> <View style={styles.newPostBtnIconWrapper}> <ComposeIcon2 size={19} |