fix(Carousel): add aria-current attribute to active dot#4447
fix(Carousel): add aria-current attribute to active dot#4447benjamincanac merged 2 commits intonuxt:v3from
aria-current attribute to active dot#4447Conversation
aria-current attribute to active dot
commit: |
|
Thanks @J-Michalek! I'm wondering why the tests are passing, we might be missing some if we don't cover this 😬 |
|
@benjamincanac Yes, that is weird, I've inspected the test snapshot and I can see that there are no dots being rendered, most likely due to |
|
Yeah probably, if you can't make it work it's not a big deal! |
|
Seems like it would be hard to debug and/or would require changes in the test structure. I was thinking, is it mandatory to use the |
|
Yes we don't really have a choice, the number of dots is not necessarily equal to the number of items. |
|
Oh yeah, it always displays like 5 of them even if there are more images got it, then I would take this PR as final. |
🔗 Linked issue
Resolves: #4403
❓ Type of change
📚 Description
I've added the
aria-currentattribute to the active dot in the Carousel component. This should improve the a11y when using assistive technologies.📝 Checklist