Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

logica11y

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logica11y

Test complex aria widgets

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Logica11y

NOTE: This is very much a work in progress and should not be used yet.

Automated widget validation according the the ARIA Authoring Practices. Validates attributes (initial and dynamic) as well as keyboard interaction.

Installation

$ npm install logica11y

Usage

In the browser

const logica11y = window.logica11y;

logica11y.tabs({
  tabs: '.tab'
}).then((result) => {
  console.log(result); // { valid: false, failures: [...], passes: [...] }
}).catch((err) => console.log(err));

Browserify

const logica11y = require('logica11y');

logica11y.tabs({
  tabs: '.tab'
}).then((result) => {
  console.log(result); // { valid: false, failures: [...], passes: [...] }
}).catch((err) => console.log(err));

API

logica11y.tabs

The tabs API returns a promise and accepts an options object:

  • tabs {Mixed}: A selector for all tabs OR an array (or nodeList) of tab elements
  • timeout {Number}: Time in ms it takes for panel to display upon tab activation (defaults to 0)

Keywords

Accessibility

FAQs

Package last updated on 10 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts