Working with accessibility is something that we should work on as web developers, however there's still a lot of confusion and easily avoidable mistakes we've all probably done at least once.
Here I've identified some of the most common ones I've seen or made myself when working with accessibility. I know there's A LOT more so I might keep updating this repo and even re-structure the directory to keep it organized., but I'll be releasing them in batches as these go in hand-in-hand with a presentation. That being said, all the needed information and explanation is here.
Every case has it's own readme.md explaining what the common mistake is, why it's bad and how to fix it, along with the sample code. There's also a sample website template which is what I use to base every example.
- No
aria-liveon dynamic content - No Focus management on Popups/Modals
- Having an image as a button
- Incorrect use of
roleattribute - Using
<button>vs using<a>
- Typing out UPPERCASE copy
- Incorrect use of the
altattribute
The most trustworthy tools I found when we started working on this project were:
Also, axe recently developed a VS Code extension as well which works a bit like a linter, and while it's somewhat new and I haven't used it for long, so far it looks pretty useful: