
Originally Posted by
rlexyd
It has recently come to my attention that our website is throwing 3 red errors when inspecting on WAVE (web accessibility evaluation tool) due to 3x Empty buttons from this plugin.
It looks as if you have the problems identified in WebAIM solved.
It should be noted that the problem was identified as an empty button which is not fixed by adding a title. The lack of title or label would probably be identified when/if the button had some text. Having an ID for each MAY have eliminated the need for a title or label.
Code:
<button type="button" id="cboxPrevious"></button>
is one example and should probably, as a minimum, be
Code:
<button type="button" id="cboxPrevious">Previous</button>
The reason they were not seen in the text of the page and were seen by the tool is that the surrounding div was display:none.
display:none does NOT keep some accessibility tools or Search Engines from "seeing the code" that is hidden in the background of your browser.
You'll note that there is no error for not having a H1 tag on your site. However, our (myZencartHost.com) tool catches that the H1 is set to display:none on line 456 of your includes/templates/responsive_classic/css/stylesheet.css and logs a missing H1. A moderate level error. Why is this so? Big differences between what the SEs see and the text-readers see on any site.
Another thing I'll be addressing soon in github is the requirement for language and reading direction in the html tag. Zen Cart and responsive_classic have
Code:
<html dir="ltr" lang="en">
showing when you view page source. This is correct (for those using English) but, a couple of the testing tools show violations due to their being missing. I imagine it may be necessary to put that call together differently.
Right now, it's done
Code:
<html <?php echo HTML_PARAMS; ?>>
being in YOUR_TEMPLATEs english.php file. The version of the english.php ships with
Code:
// Global entries for the <html> tag
define('HTML_PARAMS','dir="ltr" lang="en"');
so it may just need some tweak to get it in place at the right time for the tools to "see it". Not my area of expertise.
Bookmarks