Making plugin accessibility compliant
-
Awesome plugin, have deployed across most of my client sites so thank you. However it fails some accessibility checks for having a link with no text (close button on modal) and labels with no text (disable toggles).
I fixed it my adding the following to: /gdpr-cookie-compliance/controllers/moove-controller.php
.acc-link{line-height: 0; font-size: 0;color: transparent; } -> :145
THEN (bearing in mind line number are +1 after previous addition):
218: <span class=”acc-link”>close</span><i class=”moovegdpr-arrow-close”></i>
325: <label class=”switch”><span class=”acc-link”>disable</span>
357: <label class=”switch”><span class=”acc-link”>disable</span>
391: <label class=”switch”><span class=”acc-link”>disable</span>
It now passes accessibility checks with no errors. Could not see a github repo to fork it so thought this would be the best place to let you or people know. Would be MASSIVELY helpful to merge this with the official version (or your own version of the above) to allow updates to future versions.
Thanks again …feel free to contact me at [email protected] for more info.
- The topic ‘Making plugin accessibility compliant’ is closed to new replies.