Author Topic: Errors empty link to fancybox via webaim checker  (Read 880 times)

afentiko2000

  • Beginner
  • *
  • Posts: 17
  • A beginner
Errors empty link to fancybox via webaim checker
« on: December 20, 2021, 21:37:59 pm »
Hello, I am facing a problem with WCAG2.0 via wave.webaim.org checker. Specifically the errors are an empty link to fancybox "A link contains no text." My html errors
<a href="javascript:;" id="fancybox-left">
<span class="fancy-ico" id="fancybox-left-ico"></span>
</a>

<a href="javascript:;" id="fancybox-right">
<span class="fancy-ico" id="fancybox-right-ico"></span>
</a>
Could someone help me resolve them. There are the last 2 errors in my site and it's highly importan to reset errors.
I am not an expert in coding, self-taught in virtuemart and joomla management.
VM 3.8.8
J 3.9.28

 
 

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4664
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Errors empty link to fancybox via webaim checker
« Reply #1 on: December 22, 2021, 17:25:02 pm »
This is not a real problem, because the link is to interact with the slideshow (next and before)
Most javascripts slideshow have same problem
If you really need to solve this then disable pagination links in fancybox code
         nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
         nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')


afentiko2000

  • Beginner
  • *
  • Posts: 17
  • A beginner
Re: Errors empty link to fancybox via webaim checker
« Reply #2 on: December 27, 2021, 08:20:32 am »
Thanks for the reply. By disabling pagination you mean to uncomment the lines in components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js ?
I had already done that but the error still exist in checking.