Add more descriptive a11y label to button
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
This commit is contained in:
committed by
Samuel Newman
parent
4b0be80f50
commit
2fc05e29c3
@@ -476,7 +476,12 @@ export function SelectMediaButton({
|
|||||||
<Button
|
<Button
|
||||||
testID="openMediaBtn"
|
testID="openMediaBtn"
|
||||||
onPress={onPressSelectMedia}
|
onPress={onPressSelectMedia}
|
||||||
label={_(msg`Media`)}
|
label={_(
|
||||||
|
msg({
|
||||||
|
message: `Add media to post`,
|
||||||
|
comment: `Accessibility label for button in composer to add photos or a video to a post`,
|
||||||
|
}),
|
||||||
|
)}
|
||||||
accessibilityHint={_(
|
accessibilityHint={_(
|
||||||
msg`Opens device gallery to select images, a video, or a GIF.`,
|
msg`Opens device gallery to select images, a video, or a GIF.`,
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user