Quick accessibility question - is use of aria-label as bad as it used to be?
I read somewhere that translated pages now translate it too. Is that true?
Is it picked up on divs by screen readers, or still not?
Discussion
Quick accessibility question - is use of aria-label as bad as it used to be?
I read somewhere that translated pages now translate it too. Is that true?
Is it picked up on divs by screen readers, or still not?
@yatil @sarajw for completeness, there are currently 17 ARIA roles where aria-label and its brethren are prohibited. But I suspect you're unlikely to use most of them 😄
You can search https://w3c.github.io/aria/ for "Prohibited States and Properties:" to jump to the characteristics tables of these roles.
@sarajw Translation depends on the software doing the translation. Google Translate does translate it these days. But it can be unreliable. [1]
Divs: Depends on the role on the <div> element, not all roles can be labeled. Generic, role=“presentation”/role=“none” <div> elements can not, and so do not have an accessible name in conformance with the ARIA specification.
[1] https://adrianroselli.com/2019/11/aria-label-does-not-translate.html