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.
zio/stable
Markus Amalthea Magnuson 2023-06-26 19:14:51 +02:00 committed by GitHub
parent 08804f265e
commit 1666a747eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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>
)