# accessibility-options

> Accessibility Bar plugin.

Latest version **1.0.4** (published 2018-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install accessibility-options
pnpm add accessibility-options
yarn add accessibility-options
bun add accessibility-options
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-12-11 |
| First published | 2018-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Lucas Stoque |
| Maintainers | stoque |

## Links

- npm: https://www.npmjs.com/package/accessibility-options
- Repository: git@github.com:stoque/accessibility-bar
- npm.io page: https://npm.io/package/accessibility-options

## Recent versions

- 1.0.4 (latest) — 2018-12-11
- 1.0.3 — 2018-12-11
- 1.0.2 — 2018-12-10
- 1.0.1 — 2018-12-10
- 1.0.0 — 2018-12-10

## README

# Accessibility Bar
Accessibility Bar plugin.

#### Features
- Buttons to Increment/Decrement font size
- Button to toggle high-contrast version based on body class
- Button to LIBRAS (Língua brasileira de sinais)

## Quick Start

### Install
Download the [latest release](https://github.com/stoque/accessibility-bar/releases).

### Config
Add script with minified file

```html
<script type="text/javascript" src="vendor/accessibility/accessibility.js"></script>
```

Create markup with data-accessibility in buttons, example:
```html
<ul class="list">
    <li class="item">
        <button class="action" type="button" data-accessibility="font-decrease">
            A-
        </button>
    </li>
    <li class="item">
        <button class="action" type="button" data-accessibility="font-increase">
            A+
        </button>
    </li>
    <li class="item">
        <button class="action" type="button" data-accessibility="contrast">
          Contrast
        </button>
    </li>
    <li class="item">
        <a class="link" target="_blank" href="http://www.vlibras.gov.br/">
          VLIBRAS
        </a>
    </li>
</ul>
```

_(optional)_ Add link for css file

```html
<link rel="stylesheet" href="vendor/accessibility/accessibility.css">
```

### Use
Call the plugin function

```javascript
Accesibility.init();
```

## Options
Make some customizations

```js
Accessibility.init({
  fontIncrement: 2,
  fontIncrementLimit: 2,
  contrastClass: 'color-inverter'
})
```

|Key|Description|Type|Default|
|---|---|---|---|
|contrastClass|Define a custom class name for high contrast version|string|color-inverter|
|fontIncrementLimit|Define a custom maximum click for font adjust|integer|2|
|fontIncrement|Define a custom increment rate for font adjust|integer|2|

---
_Source: https://npm.io/package/accessibility-options · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
