Skip to content

Commit 5530362

Browse files
committed
remove thumb alt in loading
1 parent 0056a64 commit 5530362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/react/Gallery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const Gallery: FC<Props> = ({ images }) => {
113113
<img
114114
{...image.thumbnail}
115115
onLoad={() => handleLoad(image.thumbnail.src)}
116-
alt="Gallery image"
116+
alt={loadedStates[image.thumbnail.src] ? '' : 'Gallery image'}
117117
className={cn(
118118
'w-full transition-all duration-[2s] ease-in-out',
119119
loadedStates[image.thumbnail.src]

0 commit comments

Comments
 (0)