SSAgov / ANDI

A tool to test web content for accessibility and 508 compliance.
https://www.ssa.gov/accessibility/andi/help/howtouse.html
Other
302 stars 76 forks source link

"presentation" role isn't taken into account by ANDI #138

Closed marco-c closed 2 years ago

marco-c commented 2 years ago

If an element has the role attribute set to presentation, it shouldn't have an accessible name according to MDN (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/presentation_role), but ANDI requires it.

immagine

See also https://github.com/mozilla/pdf.js/issues/14437.

rgutierrezatx commented 2 years ago

@JohnCotterSSA can you respond to this. This ticket was opened in june and at least can you comment on it? We have to keep delaying changes to our system because of this.

JohnCotterSSA commented 2 years ago

You are correct. That looks like an issue with ANDI. ANDI should not be throwing the "no accessible name" alert for a role=presentation element. We'll fix it.

JohnCotterSSA commented 2 years ago

ANDI 28.0.3 resolved this. If a canvas is not focusable and has role=presentation or role=none, it will not throw the "no accessible name" alert. Thanks for finding this issue!