Buttons to add/remove contrast and increase/decrease font size.
other languages.
Read inInstall
npm install accessibility-buttons --save
Usage
Import
- accessibility-buttons/dist/css/accessibility-buttons.css
- accessibility-buttons/dist/js/accessibility-buttons.js
Add buttons
+AAdd Contrast
Initialize after DOM ready
Note: Note: Font size works only with em
or rem
units.
Settings
To set up buttons names
and aria-labels
, use the following parameters.
// default values
Font size
and contrast colors
could be customized only overwritting class values.
Example:
Contributing
Credits
Accessibility arial-label
tip - Bruno Pulis
Included the $
sign in the variable name of the cached elements for easy identification - Adler Parnas
License
Accessibility Buttons is released under the terms of the MIT license.