XDgov / data-design-standards

Other
8 stars 3 forks source link

Guidance to use aria-label #20

Open heathhayward opened 2 years ago

heathhayward commented 2 years ago

Tried to send this feedback via the suggested "ditd.datavizstandards.list@census.gov" email address, but that email no longer exists. Our developer team was recently pointed to the content in https://xdgov.github.io/data-design-standards/ and I wanted to provide some feedback - mostly related to the use of "aria-label" in the labeling guidance:

<img> elements should use the alt attribute for textual description, not aria-label

<canvas> elements should use content inside the element for textual description not aria-label

For the authoritative reference:

If you can use a native HTML element or attribute with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so.