Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

a11y-backpack

jppianta40MIT0.2.4TypeScript support: included

A toolkit to help you create a more accessible website

accessibility, a11y, toolkit

readme

Coverage Status

A11y Backpack is a service designed to improve accessibility on your website. Easily allow the user to navigate and read content using keyboard and voice commands.

Example

  a11yBackpack.setStartListeningKey('l');

  a11yBackpack.setReadOnElementCommand({ id: 'main-text', commandKey: 'c', voiceWord: 'content' });

  a11yBackpack.setClickOnElementCommand({ id: 'menu-home-link', commandKey: 'h', voiceWord: 'home' });

a11yBackpack.setStartListeningKey('l'): Starts recognizing voice commands when the l key is pressed.

a11yBackpack.setReadOnElementCommand({ id: 'main-text', commandKey: 'c', voiceWord: 'content' }): Reads the content of element with id main-text when the key c is pressed or when the user says content.

a11yBackpack.setClickOnElementCommand({ id: 'menu-home-link', commandKey: 'h', voiceWord: 'home' }): Clicks the element with id menu-home-link when the key h is pressed or when the user says home.