about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarkus Amalthea Magnuson <markus@polyscopic.works>2023-06-26 19:14:51 +0200
committerGitHub <noreply@github.com>2023-06-26 12:14:51 -0500
commit1666a747eb346e3d6f9d64866881da4404fb3f56 (patch)
treec747f2cebe8990ef3858ace6ba695c1a3a41f25f
parent08804f265e6ff8ec600295772baf8a72cbf5150d (diff)
downloadvoidsky-1666a747eb346e3d6f9d64866881da4404fb3f56.tar.zst
Add a11y details to profile page compose button. (#909)
This adds accessibility role, label and hint to the compose button on profile pages, to match the same button in all other views.
-rw-r--r--src/view/screens/Profile.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index f50a2c45d..f51bda825 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -273,6 +273,9 @@ export const ProfileScreen = withAuthRequired(
           testID="composeFAB"
           onPress={onPressCompose}
           icon={<ComposeIcon2 strokeWidth={1.5} size={29} style={s.white} />}
+          accessibilityRole="button"
+          accessibilityLabel="Compose post"
+          accessibilityHint=""
         />
       </ScreenHider>
     )