A11y Toggle

A tiny script (less than 0.6Kb gzipped) to build accessible content toggles. You can try the live demo which also acts as a documentation(link is external).

a11y-toggle uses relatively modern JavaScript API (namely reduce, addEventListener, etc.) therefore will not work in Internet Explorer 8 and below. All the other browsers, including mobile ones should work fine.

Install

npm install --save a11y-toggle
bower install a11y-toggle

Tests

Mocha(link is external) and expect.js(link is external) are used to run browser tests.

npm test

Deploy example

The example page(link is external) is deployed through GitHub Pages(link is external).

npm run deploy

Rating

0 out of 5 Stars 0 Review

5 Stars
 
0.00%
4 Stars
 
0.00%
3 Stars
 
0.00%
2 Stars
 
0.00%
1 Star
 
0.00%

About

  • There are no comments yet

Thank you! Review submitted.

Ok