From 0122cdb0b6e1ad902fb5e66b1e63f5dc3888b043 Mon Sep 17 00:00:00 2001
From: Elijah Wright <elijah@elijahs.space>
Date: Sun, 8 Oct 2023 14:29:20 -0700
Subject: fix accessibility in AutoSizedImage

---
 src/view/com/util/images/AutoSizedImage.tsx | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'src/view/com/util/images/AutoSizedImage.tsx')

diff --git a/src/view/com/util/images/AutoSizedImage.tsx b/src/view/com/util/images/AutoSizedImage.tsx
index 035e29c25..0f0345ba9 100644
--- a/src/view/com/util/images/AutoSizedImage.tsx
+++ b/src/view/com/util/images/AutoSizedImage.tsx
@@ -56,16 +56,14 @@ export function AutoSizedImage({
         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=""
         />
         {children}
       </Pressable>
-- 
cgit 1.4.1


From c39352f859d5e50d7a354408f7caad3103232683 Mon Sep 17 00:00:00 2001
From: Elijah Wright <elijah@elijahs.space>
Date: Sun, 8 Oct 2023 14:30:57 -0700
Subject: readd hint

---
 src/view/com/util/images/AutoSizedImage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/view/com/util/images/AutoSizedImage.tsx')

diff --git a/src/view/com/util/images/AutoSizedImage.tsx b/src/view/com/util/images/AutoSizedImage.tsx
index 0f0345ba9..d8ecdec1b 100644
--- a/src/view/com/util/images/AutoSizedImage.tsx
+++ b/src/view/com/util/images/AutoSizedImage.tsx
@@ -63,7 +63,7 @@ export function AutoSizedImage({
           accessible={true} // Must set for `accessibilityLabel` to work
           accessibilityIgnoresInvertColors
           accessibilityLabel={alt}
-          accessibilityHint=""
+          accessibilityHint="Tap to view fully"
         />
         {children}
       </Pressable>
-- 
cgit 1.4.1

