Skip to content

An accessibility resource for building manual and automated accessibility testing into a coding workflow.

Notifications You must be signed in to change notification settings

nelilly/a11y-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accessibility Workflow

Code and NPM packages to implement an accessibility workflow.

  1. Test early.
  2. Test often.
  3. Make it painless to remember.
  4. Make it painful to forget.

Accessibility Workflow Presentation

Installation Instructions

☛ TLDR: Assuming you already have stylelint, eslint, react, and jest created in your codebase... npm install stylelint-a11y eslint-plugin-jsx-a11y react-axe jest jest-axe husky --saveDev and create/update the appropriate config files.

The following packages are installed through the package.json with npm install. Config information for .babelrc and .eslintrc is contained within the package.json file.

Accessibility Packages

Axe is the open-source accessibility testing engine that runs the Axe extension in Chrome and Firefox. Installed as a dependency for some of the other packages.

Linting

Style lint will lint your CSS files and stylelint-ally will check that your CSS is using best practices to prevent accessibility issues. Config information is for this repo contained within the package.json file under the stylelint key.

Config information for this repo is contained within the package.json file under the eslintConfig key.

custom linting

Console Warnings

react-axe will display accessibility issues in the console in an environment of your choosing (dev, local, etc.).

Unit Tests

If you’re using Jest for your unit testing then this package can be used in conjunction with it. To use jest-axe you just need to add some simple code into your unit tests.

Commit Hooks

Husky allows you to prevent code from being committed or pushed if it doesn't pass validation, linting, or testing. Config information for this repo is contained within the package.json file under the husky key.

Automated Continuous Integration

Manual Testing

Visit the a11y-manual-testing repository for instructions on setting up the appropriate resources for manual accessibility testing. The chief components are:

  • Creating a home page or bookmark folder with accessibility resources (rules, guidelines, application documentation, samples, patterns, etc.)
  • Use your favorite virtual machine software with the appropriate platform image (Win10 or MacOS) for cross-platform testing.
  • Add screen readers
  • Add accessibility testing extensions

About

An accessibility resource for building manual and automated accessibility testing into a coding workflow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published