0.0.1 • Published 4 years ago

@acot/acot-plugin-wcag v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@acot/acot-plugin-wcag

A WCAG-based rule set for acot.

Install

Install via npm:

$ npm install --save-dev @acot/acot-plugin-wcag

Usage

Add @acot/wcag to the plugins field of the acot config file. then configure the rules you want to use under the rules section.

{
  "plugins": ["@acot/wcag"],
  "rules": {
    "@acot/wcag/button-has-name": "error"
  }
}

You can also enable all the recommended rules for our plugin. Add plugin:@acot/wcag/recommended in extends:

{
  "extends": ["plugin:@acot/wcag/recommended"]
}

Supported Rules

NameDescription:heavy_check_mark:
@acot/wcag/interactive-has-enough-sizeThe size of the target for pointer inputs is at least 44 by 44 CSS pixels.:heavy_check_mark:
@acot/wcag/interactive-has-nameFor all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to user agents, including assistive technologies. WCAG 2.1 - 4.1.2: Name, Role, Value:heavy_check_mark:
@acot/wcag/interactive-supports-focusTBA:heavy_check_mark:

Concept

Interactive content

Some rules deal with interactive content. The definition of interactive content to be audited is as follows:

  1. 3.2.5.2.7 Interactive content compliant elements.
  2. Elements with a role attribute that conforms to the above.
  3. Focusable elements.

T.B.A

0.0.2-canary.2

4 years ago

0.0.2-canary.0

4 years ago

0.0.2-canary.1

4 years ago

0.0.1

4 years ago