Add accessibilityRole to single images (#9148)
This commit is contained in:
@@ -204,6 +204,7 @@ export function AutoSizedImage({
|
|||||||
// alt here is what screen readers actually use
|
// alt here is what screen readers actually use
|
||||||
accessibilityLabel={image.alt}
|
accessibilityLabel={image.alt}
|
||||||
accessibilityHint={_(msg`Views full image`)}
|
accessibilityHint={_(msg`Views full image`)}
|
||||||
|
accessibilityRole="button"
|
||||||
style={[
|
style={[
|
||||||
a.w_full,
|
a.w_full,
|
||||||
a.rounded_md,
|
a.rounded_md,
|
||||||
@@ -226,6 +227,7 @@ export function AutoSizedImage({
|
|||||||
// alt here is what screen readers actually use
|
// alt here is what screen readers actually use
|
||||||
accessibilityLabel={image.alt}
|
accessibilityLabel={image.alt}
|
||||||
accessibilityHint={_(msg`Views full image`)}
|
accessibilityHint={_(msg`Views full image`)}
|
||||||
|
accessibilityRole="button"
|
||||||
style={[a.h_full]}>
|
style={[a.h_full]}>
|
||||||
{contents}
|
{contents}
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|||||||
Reference in New Issue
Block a user