Change In Code Or Creation Of Override To Pass Accessibility Test - Question | JoomShaper

Change In Code Or Creation Of Override To Pass Accessibility Test

AI

Alexander I.

Helix Framework 3 years ago

Hi,

In order for our project to pass an accessibility test, the below code output:

<a id="offcanvas-toggler" aria-label="Navigation" class="offcanvas-toggler-right d-block d-lg-none" href="#">
<i class="fa fa-bars" aria-hidden="true" title="Navigation"></i>
</a>

Needs to be chaged to this:

<a id="offcanvas-toggler" aria-label="Navigation" class="offcanvas-toggler-right d-block d-lg-none" href="#">
<span class="fa fa-bars" aria-hidden="true" title="Navigation"></span>
</a>

(Font Awesome < i > element to be replaced with < span > because accessibility checking tools see < i > as italics and give a fail mark to the page)

As far as I can tell, this needs to be changed in the file templates/shaper_helixultimate/features/menu.php but any change I make there, even such a minor one, completely breaks the front end.

Any ideas on how to proceed?

Thanks, Alex

0
3 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #12783

I agree with you on accessibility. We are trying to give as much possible custmomization option as we can. I will share your idea with the developers.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #12779

Hello Alexander I.

Sorry, we do not provide customization support. It breaks because there are CSS associated with it. For example, if there is CSS for #offcanvas-toggler i, this will not affect if you change i tag to span.

Best regards

0
AI
Alexander I.
Accepted Answer
3 years ago #12781

Hi Ofi,

Actually the whole front end breaks up (strange?!?!), not just the styles for the offcanvas-toggler.

Thanks for your reply anyway.

As accessibility is becoming an even bigger deal, maybe this could be included in a future update of Helix Ultimate?

Best regards, Alex

0