Currently the aria-label for next/previous buttons for amp-carousel read as previous item in carousel / next item in carousel, ideally they should also indicate the total number of items and which one next/previous is. This additionally allows the user to infer there where they are in the carousel.
We like to change the aria-label for next/previous buttons to read as Next item (# of ##) / Previous item (# of ##) where # is the slide number and ## is the total number of slides.
For instance if user is currently on slide 5 of 20 the labels should be:
Next item (6 of 20)
Previous item (4 of 20)
We need to be mindful of loop property which allows user to navigate back to slide 1 after hitting the last slide using the next button.
closes Issue #12500 in the description. Once approved, your changes will be merged. ⚡⚡⚡Congrats on making your first contribution to the AMP Project!⚡⚡⚡ You'll be able to see it live across the web soon!
Thanks, and we hope to see more contributions from you soon.
If you have questions ask @aghassemi in this issue or on your Pull Request (if you've created one) or see the How to get help section of the Getting Started guide.
How about having (# of ##) in parenthesis, like: Next item (4 of 20). I question whether they need to know it's a carousel. The relevant details are, there's many items to move back/forwards to.
HTH.
Assigning to myself to write-up as a GFI.
@aghassemi @cathyxz I can work on this issue if no one else has taken it yet
@cjdeleon62 got for it! Thank you.
Most helpful comment
@aghassemi @cathyxz I can work on this issue if no one else has taken it yet