Everyone talks about accessibility - or a11y - but how often is accessibility a primary thought during your development pipeline? How often is accessibility taken for granted? It’s easy to push it aside and say you’ll do it later or to forget entirely. It’s easy to drop a couple WIA-ARIA tags into your HTML and move on, but this doesn’t address many accessibility needs. When was the last time you used your website with your eyes closed?
Let’s do just that. Let’s try to navigate a website with a blindfold on. Let’s try to use a website without a mouse. Let’s try navigating a website with a visual impairment. And then let’s fix the problems encountered.
We will focus on experiencing website with two types of impairments:
- Visual impairments, such as color blindness, low visual acuity, and a complete lack of vision
- Mobility impairments, preventing users from using a mouse for input
These impairments are quite common and are simple to simulate using a combination of browser extensions and existing tools in your operating system. For each impairment, we will look at how the markup (both the semantic structure and the attributes), the colors and contrast, tab order, and focus affect the experience. And for each issue we encounter, we will look at specific ways that experience can be improved.
Last, we will look at testing strategies to audit your code for potential accessibility issues, using extensions such as Google’s Lighthouse, Deque’s axe-engine, and others.
- This repository
- Node, with NPM or Yarn
- NodeJS, with packages in repository installed (
npm install
oryarn
) - Google Chrome (latest)
- ChromeLens extension
- A screen reader that works with Chrome, like ChromeVox
- A blindfold
- Headphones (for the screen reader)
- WAVE Evaluation Tool extension
- axe extension
The slide deck is built using mdx-deck. If you want to run the slides from this talk:
- Run
npm install
oryarn
to install the dependencies - Run
npm run slides
oryarn run slides
to launch the deck - Run
npm run build
oryarn run build
to build a PDF of the slides
Each exercise is atomic, you can do each exercise on its own or in any order. In order to use many Chrome extensions, including ChromeLens, you must be opening
pages off a web server. A simple Node/Express static file server is provided to do the exercises. First, you must start the server by running npm start
or
yarn start
then opening http://localhost:3000
in your browser. You should see an extremely simple landing page with links to the exercises.
- A blindfold
- Headphones
- A screen reader that works with Chrome, like ChromeVox
- Open
Exercise 01: No Vision
in your browser, and try not to look at the page - Turn on your screen reader
- Cover your eyes with the blindfold, or otherwise obstruct the screen
- Attempt to navigate the page
- Were you able to identify all the form elements, in a meaningful way?
- Were you able to identify what each link and button element was for?
- Did the page move around logically?
- Open
Exercise 02: Low Vision
in your browser, and try not to look at the page - Open the Chrome Dev Tools
- Open the "ChromeLens" dev tool tab
- Check the box for "Enable Lens"
- Start with "Partial Blindness (medium)"
- Attempt to navigate the page
- Repeat with different vision impairments, such as "Protanopia (red-blind)" and "Tritanopia (blue-blind)"
- Were you able to identify what elements has focus?
- Were you able to distinguish between the elements on the graph?
- Were you able to identify at a glance whether the alert above the form was informational or an error?
- If you have an external mouse, disconnect it!
- If you are using a trackpad ... pretend it's not there!
- Open
Exercise 03: Mobility Impairment
in your browser, and try not to look at the page - Attempt to navigate the page without using your mouse/trackpad
- Were you able to identify what elements has focus?
- Did the page move around logically?
- Were there significant differences in navigating the page with your eyes open and no mouse compared to
Exercise 01: No Vision
?