Cover Block has image with no text alternative
-
This one-page site is dinged in automated accessibility audits for the background image that has no text alternative. This normally wouldn’t happen for a background image, but perhaps it is happening here because the background image div has the ARIA role=”image”?
<div role="img" class="wp-block-cover__image-background wp-image-221 has-parallax" style="background-position:50% 50%;background-image:url(...)"></div>
Can you explain why the div has this attribute? Does this make screen readers treat it as an
<img />
, and so expect some alt-text?The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cover Block has image with no text alternative’ is closed to new replies.