Tree Item - Use aria-hidden for SVGs - (2036570418) #5616
Labels
4 - verified
Issues that have been released and confirmed resolved.
a11y
Issues related to Accessibility fixes or improvements.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
estimate - 1
Very small fix or change (potentially a single line), doesn't require updates to tests.
Milestone
Module:
38 Tree and Tree Item
Violation:
Hide SVGs from assistive technologies using the
aria-hidden
prop.WCAG Reference:
Instance ID:
2036570418
Severity:
10
Description:
[Issue]
There are SVG images that serve a decorative purpose but are exposed to screen readers.
[User Impact]
Screen readers may announce elements with no alt attribute by their filename and SVGs with no accessible name as "group." This gives screen reader users irrelevant and confusing information.
[Code Reference]
Note:
[Suggestion]
Provide alternative text for images. Non-meaningful images must be marked as decorative, which causes screen readers to ignore them. To mark an
<svg>
element as decorative, add aria-hidden="true" to the element.[Compliant Code Example]
Media Type:
Images
Additional Resources:
The text was updated successfully, but these errors were encountered: