From f30acadc73b672d97948a9a566f96017a519626c Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 1 Apr 2026 11:00:11 -0700 Subject: [PATCH] Hide alt text note after alt text is added (#10132) --- src/view/com/composer/GifAltText.tsx | 2 +- src/view/com/composer/photos/Gallery.tsx | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/view/com/composer/GifAltText.tsx b/src/view/com/composer/GifAltText.tsx index 8afa7d0570..e32df485c3 100644 --- a/src/view/com/composer/GifAltText.tsx +++ b/src/view/com/composer/GifAltText.tsx @@ -101,7 +101,7 @@ export function GifAltTextDialogLoaded({ - + Alt text describes images for blind and low-vision users, and helps give context to everyone. diff --git a/src/view/com/composer/photos/Gallery.tsx b/src/view/com/composer/photos/Gallery.tsx index 2ad91fa594..0df31da625 100644 --- a/src/view/com/composer/photos/Gallery.tsx +++ b/src/view/com/composer/photos/Gallery.tsx @@ -120,12 +120,14 @@ const GalleryInner = ({images, containerInfo, dispatch}: GalleryInnerProps) => { ) })} - - - Alt text describes images for blind and low-vision users, and helps - give context to everyone. - - + {images.some(image => !image.alt) && ( + + + Alt text describes images for blind and low-vision users, and helps + give context to everyone. + + + )} ) : null }