edenspiekermann / a11y-toggle

A tiny script for accessible content toggles.

Home Page:https://edenspiekermann.github.io/a11y-toggle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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 and expect.js are used to run browser tests.

npm test

Deploy example

The example page is deployed through GitHub Pages.

npm run deploy

About

A tiny script for accessible content toggles.

https://edenspiekermann.github.io/a11y-toggle/

License:MIT License


Languages

Language:HTML 65.6%Language:JavaScript 34.4%