Accessibility Testing Tools for Developers

Gerard K. Cohen Lead Accessibility Strategist, Wells Fargo Digital Solutions for Business (DS4B)

Accessibility Testing?

Front-end is the last hope for users

Basic Test #1

HTML Validation

Basic Test #2

What if I told you...

Tab Key

Can't find focus?

Best one line of CSS ever...


                    /* Helps locate focus */
                    :focus {
                      border: 2px solid red
                                !important;
                    }
                  

JavaScript Version


                    /* Helps locate focus */
                    document.activeElement;
                  

Proper Tabindex Usage

tabindex="-1"

tabindex="0"

tabindex="1"

Bonus

Zoom with CTRL (CMD) +

Browser Zoom demo video

Basic Tests

  • HTML Validation
  • Keyboard Focus with TAB

CSS Bookmarklets

a11y.css Developed by Gaƫl Poupard

(Pronounced Alix)

http://bit.ly/2rdkDOS https://ffoodd.github.io/a11y.css/

a11y.css demo video

Custom Rules

Ex: CSS Toolbar "Widget"

  1. role="group"
  2. aria-label="some unique label"
.toolbar:not([role="group"]) {
  position: relative;
}

.toolbar:not([role="group"]):before {
  background-color: #dc143c;
  color: #fff;
  content: "A11y: Role of 'group' is missing.";
  font-size: 1rem;
  left: 0;
  padding: 0.625rem;
  position: absolute;
  top: -2.875rem;
}
.toolbar:not([aria-label]),
.toolbar:not([aria-label=""]) {
  position: relative;
}

.toolbar:not([aria-label]):before,
.toolbar:not([aria-label=""]):before {
  background-color: #dc143c;
  color: #fff;
  content: "A11y: Unique aria-label is missing.";
  font-size: 1rem;
  left: 0;
  padding: 0.625rem;
  position: absolute;
  top: -2.875rem;
}

JS Bookmarklets

tota11y demo video

HTML CodeSniffer demo video

Browser Plugins

Web Developer Tools demo video

Chrome Accessibility Developer Tools

Color Contrast

Color Test: #45 Color Test: #45 with Deuteranope
Color Test: #74 Color Test: #74 with Deuteranope

Chromelens demo video

WAVE demo video

aXe demo video

Tenon By Karl Groves

https://tenon.io/

Tenon demo video

a11yTools Extension for Safari macOS By Paul J. Adam

http://bit.ly/2roa6xJ http://pauljadam.com/extension.html

Lighthouse demo video

Advanced Testing

Nightwatch Code Example part 1

Nightwatch Code Example part 2

Nightwatch accessibility test demo video

What's Next? How can this be used?

Conclusion Test!

Accessibility Testing Tools for Developers

Gerard K. Cohen Lead Accessibility Strategist, Wells Fargo Digital Solutions for Business (DS4B)