chnm / rrchnm-wordpress

0 stars 1 forks source link

homepage - possible empty link on page #88

Closed IdaAkiwumi closed 3 years ago

IdaAkiwumi commented 3 years ago

While using the WAVE tool, I was alerted to there being an empty link on the page. Screen Shot 2020-09-30 at 3 34 21 PM

This is the link that seems to be empty, but I'm not sure if there's another way to present this link <a href="#" class="mobile-toggle"></a>

I read this article, that says to code empty links like this: <a href=”javascript:void(0);”>link</a> so does it make sense to code the above like this: <a href="javascript:void(0);" class="mobile-toggle"></a> ?

kimisgold commented 3 years ago

This was the mobile toggle button. I added a span with aria-hidden="true" for the icon as well as a screen reader only span for the label itself, following the recommended markup pattern for accessible icon fonts found here.