DEV Community

Discussion on: A deep dive into ARIA

Collapse
 
grahamthedev profile image
GrahamTheDev

A great look at a bit more detail.

Just so you know there is a minor mistake with your tablist example, you have an aria-labelledby that is pointing to a non-existent ID.

Also aria-selected="true" on two tab buttons would be an accessibility error that may cause confusion, one should be false or non existent!

One last thing that is particularly unusual about tabs is that it is one of the few times it is recommended that you add tabindex="0" to the tabpanel that is currently active.

Only minor but just thought I would let you know.

Either way have a ❤ and a 🦄!

Collapse
 
elischei profile image
Eli H. Schei

Thanks for the feedback! :) The two first are copy paste errors on my part! And I didn’t catch it when reading through, so Thank you for pointing those out! I will update the post and fix the errors.

The tabindex usecase I wasn’t aware of, so I learned something new! Thanks! :)

Collapse
 
grahamthedev profile image
GrahamTheDev

No problem, it was a great deeper dive and I know what it is like with examples!

I look forward to the next entry in the series! ❤