From c395e0705ebcb8d54abbdae89ebbc261d039f046 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 26 Mar 2026 11:36:08 +0200 Subject: [PATCH] hide alt text note after it's added --- 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 }