diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-10-30 17:08:15 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-10-30 17:08:15 -0700 |
commit | e1dcedd87e104ab38baf29420ddcb940cab83711 (patch) | |
tree | 28a56c0d04ddcd8e980459a24802fa8b232103ee | |
parent | 84ee64025f683ec846827bf98c26a0bf8c54c080 (diff) | |
parent | 1acf4969c5493cded6237cfc44ca48486f399286 (diff) | |
download | voidsky-e1dcedd87e104ab38baf29420ddcb940cab83711.tar.zst |
Merge branch 'elijah-wright-patch-1' into main
-rw-r--r-- | src/view/com/util/images/AutoSizedImage.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/view/com/util/images/AutoSizedImage.tsx b/src/view/com/util/images/AutoSizedImage.tsx index 035e29c25..6cbcddc32 100644 --- a/src/view/com/util/images/AutoSizedImage.tsx +++ b/src/view/com/util/images/AutoSizedImage.tsx @@ -52,20 +52,20 @@ export function AutoSizedImage({ if (onPress || onLongPress || onPressIn) { return ( + // disable a11y rule because in this case we want the tags on the image (#1640) + // eslint-disable-next-line react-native-a11y/has-valid-accessibility-descriptors <Pressable onPress={onPress} onLongPress={onLongPress} onPressIn={onPressIn} - style={[styles.container, style]} - accessible={true} - accessibilityRole="button" - accessibilityLabel={alt || 'Image'} - accessibilityHint="Tap to view fully"> + style={[styles.container, style]}> <Image style={[styles.image, {aspectRatio}]} source={uri} - accessible={false} // Must set for `accessibilityLabel` to work + accessible={true} // Must set for `accessibilityLabel` to work accessibilityIgnoresInvertColors + accessibilityLabel={alt} + accessibilityHint="Tap to view fully" /> {children} </Pressable> |