Buttons to add/remove contrast and increase/decrease font size.

Accessibility Buttons Repository Follow @tiagoporto Fork Issue Star

Install

npm install accessibility-buttons --save

Usage

Import

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