1.2.3 • Published 6 years ago

ng-accessibility-bar v1.2.3

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

GitHub license GitHub release npm npm Build Status

ng-accessibility-bar

Accessibility bar component for Angular 1.6

Features

  • Buttons to Increment/Decrement font size
    • On change font size, a new style attribute is add to html tag with font size in px units, also one new helper class is add to body tag base on actual font size. Our tip for that implementation work on your project is make all the css files using rem unit. But also you can use a postcss script called pxtorem for make this transform work for you automatically.
  • Button to toggle high-contrast version based on body class
    • On toggle high contrast a new class is add to body tag, all work needed is make a new version of your css based on that high contrast class on body.
  • Button to LIBRAS (Língua brasileira de sinais)
    • Just open VLIBRAS website

Quick Start

Install

npm install ng-accessibility-bar --save

Config

Add script with minified file

<script type="text/javascript" src="node_modules/ng-accessibility-bar/dist/ng-accessibility-bar.js"></script>

(optional) Add link for css file

<link rel="stylesheet" href="node_modules/ng-accessibility-bar/dist/ng-accessibility-bar.css">

Add component module as dependency

angular.module('application', [
    'ng-accessibility-bar',
]);

Use

Add component wherever you want

<ng-accessibility-bar></ng-accessibility-bar>

Options

Make some customizations with attributes

<ng-accessibility-bar
  contrast="false"
  contrast-class="hight-contrast"
  font-adjust="true"
  font-adjust-max-size="40"
  font-adjust-min-size="12"
  font-adjust-increment-rate="5"
  libras="false"
  show-title="true"
  title="Accessibility:"
>
</ng-accessibility-bar>
KeyDescriptionTypeDefault
contrastShow and hide contrast buttonbooleantrue
contrast-classDefine a custom class name for high contrast versionstringcolor-inverter
font-adjustShow and hide buttons for font adjustbooleantrue
font-adjust-max-sizeDefine a custom maximum size for font adjustinteger20
font-adjust-min-sizeDefine a custom minimum size for font adjustinteger16
font-adjust-increment-rateDefine a custom increment rate for font adjustinteger2
librasShow and hide buttons for LIBRASbooleantrue
show-titleShow and hide the title for barbooleantrue
titleDefine a custom title for barstringAcessibilidade:

Authors

Contribuiting

Check our CONTRIBUTING file.

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago