As part of our advocacy, #OneAccessibility, we will share information about differently able and profile one location with accessible trails. Look out every week for this enlightening post.
Hello all! How are we doing where we’re at? It’s that time again, and I particularly like this series as it touches both on a need in the community and a passion of mine. @Jesi made a good point in her article that “good contrast has to have sufficient contrast foreveryone to distinguish the content clearly.”
When we talk about web accessibility, we know that there are certain Web Content Accessibility Guidelines (WCAG) that are organized around four main principles, which state that content must be POUR: Perceivable, Operable, Understandable, and Robust. Knowing what you know now, is your content, service or product POUR? Not sure?
Fortunately for most of us, there are Code Detectors that make sure said principles are being met. Code detectors, also known as Lint or a linter, is an automated tool used to flag programming and structural errors. They analyze the website to detect if there are any violations to WCAG from the backend. Code detectors essentially enforce a certain standard for websites. These software programs are evaluation tools that help you determine if web content meets accessibility guidelines.
How Code Detectors Work
— Use eslint to pass the path of source code (for example)
— Plug the linter into custom web code like $ eslint src/**/*.js
— If there is an error, the output might look like this:
> eslint src/**/*.js
home/jeromewu/repos/app/src/App.js
10:61 error ‘undefinedVar’ is not defined no-undef
1 problem (1 error, 0 warnings)
— Now you can work from the backend to fix any errors shown! You can also plug in various accessibility specifications depending on which you deem fit.
Some benefits that this type of tool can provide include:
— Codes that are consistent, more accessible, and sustainable for user experience.
— Maintaining a certain web standard across sites.
— Fewer errors with display and visuals.
Whether you integrate this custom code in your site or outsource the service, code detectors are effective and a step forward towards accessibility. What other software can you think of that detects errors in WCAG? Share below!
If you have a question, suggestion, or contribution, feel free to comment below. You can read last week’s roundup article here a**nd check the list of our other articles under "Accessibility Uncovered".