End of Support for Joomla 3 - Forum closed

Fix WCAG AChecker error

Fix WCAG AChecker error was created by antonypits

Posted 6 years 11 months ago #20847
Hello.
I'm trying to make my site WCAG compatible in order to pass a verification I need. I need the site to pass the test in achecker.ca/ .

I get one last error that says:


Check 174: Anchor contains no text.
Repair: Add text to the a element or the title attribute of the a element or, if an image is used within the anchor, add Alt text to the image.
Error Line 219, Column 11:
<a href="#offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas></a>

I understand that this has to do something with the mobile menu that is set to appear offcanvas.
Is there any way to fix it without unpublishing the mobile menu module?

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Fix WCAG AChecker error

Posted 6 years 11 months ago #20852
Hi there,
the anchor has no text is HTML5 based syntax. There is nothing wrong.
But you can add a text like this

<a href="#offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas>Menu</a>

Please Log in or Create an account to join the conversation.

Replied by antonypits on topic Fix WCAG AChecker error

Posted 6 years 11 months ago #20856
Hello and thanks for the quick answer. Where do I add the Menu text?

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Fix WCAG AChecker error

Posted 6 years 11 months ago #20857

<a href="#offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas>Menu</a>

or add a empty syntax, see image below

Attachment Screenshot_1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26-27-28-29-30-31-32-33-34-35-36-37-38-39-40-41-42-43-44-45-46-47-48-49-50-51-52-53-54.jpg not found

Last Edit:6 years 11 months ago by joomlaplates

Attachments:

Last edit: 6 years 11 months ago by joomlaplates.

Please Log in or Create an account to join the conversation.

Replied by antonypits on topic Fix WCAG AChecker error

Posted 6 years 11 months ago #20858
Thanks a lot! Now it passes without problem!

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License