npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ng-accessibility-bar

v1.2.3

Published

Accessibility bar component with high contrast, font adjust and libras

Downloads

19

Readme

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>

|Key|Description|Type|Default| |---|---|---|---| |contrast|Show and hide contrast button|boolean|true| |contrast-class|Define a custom class name for high contrast version|string|color-inverter| |font-adjust|Show and hide buttons for font adjust|boolean|true| |font-adjust-max-size|Define a custom maximum size for font adjust|integer|20| |font-adjust-min-size|Define a custom minimum size for font adjust|integer|16| |font-adjust-increment-rate|Define a custom increment rate for font adjust|integer|2| |libras|Show and hide buttons for LIBRAS|boolean|true| |show-title|Show and hide the title for bar|boolean|true| |title|Define a custom title for bar|string|Acessibilidade:|

Authors

Contribuiting

Check our CONTRIBUTING file.