Axe mode
Accessibility testing visualized
This project is an attempt to leverage [`axe-core`](https://github.com/dequelabs/axe-core) in a component to find accessibility violations and provide information on how to resolve them. The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2020. Key topics include: a11y, accessibility, axe, testing.
axe-mode
WIP
This project is an attempt to leverage axe-core in a component to find accessibility violations and provide information on how to resolve them.
Currently, this only works for React.
See it in action on CodeSandbox.

Usage
Install the library:
bashyarn add axe-mode -D
or
bashnpm install axe-mode --save-dev
Import the component and wrap it around your application or any other component tree you would like to validate:
tsximport AxeMode from 'axe-mode'; function App() { return ( <AxeMode disabled={process.env.NODE_ENV !== 'development'}> <h1 aria-expanded="123">Hello world!</h1> </AxeMode> ); }
Launch your application as usual. Any violations of accessibility will show up as an overlay. If you wish to interact with your application, overlays can be toggled on/off with <kbd>Ctrl + I</kbd>.
You can safely leave the component around your application since this whole library and its dependencies will be dropped in production.
Note: Make sure to only run in production by using the disabled prop with your environment variable.
Contributors
Showing top 2 contributors by commit count.
