News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Alt Tags on file symbols

Started by sichapman, 16.08.2022 12:45:14

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sichapman

I 'm trying to remove the alt text on all the file symbols as they continue to pop up failing our accessibility testing. I have edited every default.php files within the components/jdownloads/views folder simply deleting ant alt=" reference yet it still loads alt text code.

<img class="jd_filetyp_icon" src="https://www.erewash.gov.uk/images/jdownloads/fileimages/flat_1/pdf.png" loading="lazy" align="top" width="38" height="38" border="1" alt="pdf-55">

is there some kind of cacheing going on here? obviously i have cleared local browser cache etc.

this is the page we are troubleshooting as you can see if you inspect the pdf icon image it shows alt="pdf random number"
https://www.erewash.gov.uk/planning-policy-section/scheduled-monuments.html

we are on version 3.9.8.3.4
  •  

ColinM

#1
Hi
At present when I viewed your link the PDF image is not there. But using the Inspector I could see that the <img code contains
<img class="jd_filetyp_icon" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%2F%3E" data-original="https://www.erewash.gov.uk/images/jdownloads/fileimages/flat_1/pdf.png" loading="lazy" alt="pdf-74" width="38" height="38" border="1" align="top">

There is an  alt="pdf-74" in the above but each  Download line will have alt-xx where xx is diferent each time.  My understanding of WC3 WCAGis that a repeated alt messages that causes the 'failure'. But that an alt is required.  I checked the gereated alt in each of the displayed items and each one had a different value betwen 74 and 83

On previous instances of cached cases I have found it better not to use Lazy Load. Could try please and let me know

Also please advise if my assumptions about the structure of the alt message is not correct.

Colin
Colin M
  •  

ColinM

Hi
I have just reinstalled a WCAG checker and will check on my test site - which suffers from many contrast challenges.
Colin
Colin M
  •  

sichapman

Hi Colin, thanks so much for replying to my thread.
The problem is with the contents of the alt text thats being auto generated, as its a random number (so all symbol pics show similar alt text) our scanner picks it up as its not very meaningful for screan readers to interpret back to users with sight difficulty. I have been editing the views - default.php files to simply remove the alt code, weirdly having no alt text is better than using alt text which is not meaningful.

attached is the error beening produced using Sortsite's powermapper.

  •