Carousel: Don't use aria-hidden="false"

This commit is contained in:
2020-04-06 18:51:42 +02:00
parent 36f6c89f0d
commit 203641918e

View File

@@ -174,7 +174,7 @@
on:click={openFullscreen} on:click={openFullscreen}
role="tabpanel" role="tabpanel"
aria-label="Photo {index + 1} of {photos.length}" aria-label="Photo {index + 1} of {photos.length}"
aria-hidden={index !== currentIndex} aria-hidden={index === currentIndex ? undefined : true}
> >
<picture class="gallery__picture"> <picture class="gallery__picture">
<source media="(min-width: 968px)" data-srcset={getThumbnail(image.private_hash, 1200)}> <source media="(min-width: 968px)" data-srcset={getThumbnail(image.private_hash, 1200)}>