Skip to content

Commit 493e830

Browse files
committed
Add role and aria-label to arrows
1 parent 0a74a24 commit 493e830

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/react-slidy-slider.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,17 @@ export default function ReactSlidySlider({
139139
{showArrows && (
140140
<>
141141
<span
142+
arial-label="Previous"
142143
className={`${classNameBase}-prev`}
144+
role="button"
143145
disabled={index === 0}
144146
onClick={handlePrev}
145147
/>
146148
<span
149+
arial-label="Next"
147150
className={`${classNameBase}-next`}
148151
disabled={items.length <= numOfSlides || index === items.length - 1}
152+
role="button"
149153
onClick={handleNext}
150154
/>
151155
</>

0 commit comments

Comments
 (0)