by askew · 1y ago · 0 comments
As the article mentions, slapping aria-label on everything won't make an interface accessible and might have unintended consequences.
Anyhow, it's been a huge morale win to see really good works like the Testing Library strongly emphasize using page accessibility hooks to drive testing! https://testing-library.com/docs/queries/about/#priority
Exactly as you say, it drives better accessibility, and gets everyone using the same referants (versus inventing a new third way outside of both query selectors & aria).