Skip to content

Commit

Permalink
fix: mark offscreen slides as aria-hidden (fix #297)
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed Aug 5, 2024
1 parent 203b71f commit 2b9816b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function CarouselSlide({ slide, offset }: CarouselSlideProps) {
offset === 0 && cssClass(cssSlidePrefix("current")),
cssClass(CLASS_FLEX_CENTER),
)}
aria-hidden={offset !== 0}
onClick={handleBackdropClick}
style={style}
>
Expand Down

0 comments on commit 2b9816b

Please sign in to comment.