When scanning our website for ADA compliancy - https://landprollc.us/, the menu items that have child items are failing. The report says:
Elements that behave as buttons but are built using other tags such as span, div, a or others, should include a "role" attribute that equals to "button".
Failed Elements:
<a href="#" onclick="dodajAktywne(this)" >About<span class="parent-indicator j51-inline-icon" aria-hidden="true"><svg aria-hidden="true" focusable="false" class="svg-inline--fa fa-chevron-down fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" vi...
<a href="#" onclick="dodajAktywne(this)" >Services<span class="parent-indicator j51-inline-icon" aria-hidden="true"><svg aria-hidden="true" focusable="false" class="svg-inline--fa fa-chevron-down fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg"...
<a href="#" onclick="dodajAktywne(this)" >Seminar<span class="parent-indicator j51-inline-icon" aria-hidden="true"><svg aria-hidden="true" focusable="false" class="svg-inline--fa fa-chevron-down fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" ...
<a href="#" onclick="dodajAktywne(this)" >Media<span class="parent-indicator j51-inline-icon" aria-hidden="true"><svg aria-hidden="true" focusable="false" class="svg-inline--fa fa-chevron-down fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" vi...
These menu items have role="img". I think this should be role="menuitem". Can this be fixed in the templates? Also, can you tell me what file I would need to modify to make this change in the meantime? We are using the Emani template.
- dy87chf
- Commercial Templates
- Thursday, 16 May 2024
- Subscribe via email
Hello
May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciaran
May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciaran
- more than a month ago
- Commercial Templates
- # 1
Thank you
I have amended your template menu override to include the role attribute as described.
Ciaran
I have amended your template menu override to include the role attribute as described.
Ciaran
- more than a month ago
- Commercial Templates
- # 6
Great, thank you. Can you confirm it was just these two files that were modified:
templates/j51_emani/html/mod_menu/default_component.php
templates/j51_emani/html/mod_menu/default_url.php
templates/j51_emani/html/mod_menu/default_component.php
templates/j51_emani/html/mod_menu/default_url.php
- more than a month ago
- Commercial Templates
- # 7
Thank you. Will this be something that is added to future template releases, or will I need to apply these overrides after any updates?
- more than a month ago
- Commercial Templates
- # 9
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »