@AntoineC-dev
Posted
Hi Elaine. What an amazing work. This is the carousel you were talking about in the comment on my e-commerce solution. All smooth and beautiful.
Since you really focused on the accessibility I have a little something that you might wanna add to your solution.
You chose to not use the html disabled attribute, which according to this article is a good choice Making disabled buttons more inclusive but you may want to use the aria-disabled="true" attribute on the buttons when user reached the first slide (for the previous button) and the last slide (for the next button).
I think this is useful for users with a screen reader.
Again, very clean solution. Awesome !
Peace.
Marked as helpful
@elaineleung
Posted
@AntoineC-dev Thanks for the useful info, Antoine, really appreciate it, and please keep them coming, as I've still got lots to learn about accessibility. Peace to you too 😊