Photos fail accessibility test
-
I have a couple of pages on my (soon to be live) website where large thumbnails can be clicked to reveal the full-size photo. These thumbnails fail the Accessibility Insights “FastPass” test for WCAG 2.1 compatibility. The report says:
‘
Path
.blocks-gallery-item:nth-child(1) > figure > a
Snippet
How to fix
Fix the following:
Element is in tab order and does not have accessible text
Fix ONE of the following:
Element does not have text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
‘Setting “Alternative Text” in the Media Library for these images has no effect.
If I edit the page, there’s an option for each image to add “Additional CSS Class(es)” but my searching online so far suggests that there’s no way (or at least no straightforward way) of adding a title using CSS.
I’m not a skilled HTML/CSS programmer though I do have an (old) IT background.
Can anyone advise how I can overcome this problem?
Thanks in anticipation,
ChrisThe page I need help with: [log in to see the link]
- The topic ‘Photos fail accessibility test’ is closed to new replies.