CACSP for people with disabilities (a11y)
-
The Cookies and Content Security Policy plugin is a great example of cookie implementation for WordPress CMS, with great potential for expansion ??. We have implemented the plugin on several of our websites, and during the last implementation, we found one small thing missing – adapting the front-end view for users with disabilities. So, we implemented our own solutions to ensure that users with disabilities can also use it!
What did we do?
- We implemented a barrier preventing browsing the site without prior acceptance of cookies – the module code should be implemented first in the DOM structure and should not allow tab navigation to other DOM elements on the page.
- We redesigned the form so that screen reader programs could correctly read everything in the module.
- We added module support so that all options could be set using the keyboard.
We thought we would share our vision of this plugin with you and encourage you to take a closer look at the accessibility possibilities!
We implemented all these things for a specific project, so review the project and see the differences in the code ??
Versions:
Cookies and Content Security Policy: 2.17
WordPress: 6.4.3
PHP: 7.4.33
Screen reader: NVDA
Link to the plugin implementation with a11y:
https://drive.google.com/file/d/1CU0rEzHb1_xY7Q8M1nwGGrtP1aJrmjCK/view?usp=drive_link
- The topic ‘CACSP for people with disabilities (a11y)’ is closed to new replies.