RuleSets of AccessMonitor - the validator of web accessibility practices
The “Hidden Decorative Elements Check” evaluates whether all purely decorative elements (e.g., icons, background SVGs, spacer images) are properly hidden from assistive technologies (AT) like screen readers, using aria-hidden="true"
, empty alt=""
, or role attributes like role="presentation"
.
I haven’t found any elements marked as decorative that have been exposed to Assistive Technologies.
To address decorative elements that are incorrectly unhidden from assistive technologies:
<img>
element, empty the alternative text to ensure screen readers skip the image, and add role="presentation"
to reinforce the intention.aria-hidden="true"
to hide the element from AT, and focusable="false"
to ensure it doesn’t appear in the tab order.aria-hidden="true"
.