Install
npm install accessibility-buttons --save
Usage
Import
- accessibility-buttons/dist/css/accessibility-buttons.css
- accessibility-buttons/dist/js/accessibility-buttons.js
Add buttons
<button type="button" data-accessibility="font">+A</button>
<button type="button" data-accessibility="contrast">Add Contrast</button>
Initialize after DOM ready
accessibilityButtons()
Note: Font size works only with "em" or "rem" units.
Settings
Check github.com/tiagoporto/accessibility-buttons for more details