Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit adff051

Browse files
author
yi
authored
Merge pull request YIZHUANG#144 from OscarBarrett/feature/dots-aria-label
Include aria-label on dots
2 parents 32c98eb + 15b2039 commit adff051

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Dots.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ const Dots = ({
9191
isActive ? "react-multi-carousel-dot--active" : ""
9292
}`}
9393
>
94-
<button onClick={() => goToSlide(nextSlide)} />
94+
<button
95+
aria-label={`Go to slide ${index + 1}`}
96+
onClick={() => goToSlide(nextSlide)}
97+
/>
9598
</li>
9699
);
97100
})}

0 commit comments

Comments
 (0)