Accessibility problems- Improper use of link, Keyboard nav
-
Is there a fix for these accessibilty problems? The language toggle violates accessibilty requirements:
- Improper use of link
- Language toggle cannot be used with keyboard navigation
Improper use of link:
<a href="#" class="trp-floater-ls-disabled-language trp-ls-disabled-language" onclick="event.preventDefault()">English</a>
The Accessibility Checker plugin explanation:
About Improper Use of Link error
An Improper Use of Link error appears if you have links that are missing an
href
attribute or are only linked to a#
, and do not haverole="button"
on them. Links should be used to direct people to other parts of your site. Any other functionality that triggers an action should be a button. To resolve this error you need to recode the link to use a<button>
tag (preferable) or addrole="button"
to the existing<a>
tag. If the element is a toggle button (such as an accordion), additional ARIA attributes are required.
- You must be logged in to reply to this topic.