All Projects → github → Accessibilityjs

github / Accessibilityjs

Licence: mit
Client side accessibility error scanner.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Accessibilityjs

Andi
A tool to test web content for accessibility and 508 compliance.
Stars: ✭ 140 (-93.61%)
Mutual labels:  accessibility
Ubkaccessibilitykit
An iOS framework to help with accessibility development and testing.
Stars: ✭ 170 (-92.24%)
Mutual labels:  accessibility
Ej2 Vue Ui Components
Syncfusion Vue UI component library offer more than 50+ cross-browser, responsive, and lightweight vue UI controls for building modern web applications.
Stars: ✭ 182 (-91.69%)
Mutual labels:  accessibility
Color
Color utilities for macOS, iOS, tvOS, and watchOS
Stars: ✭ 145 (-93.38%)
Mutual labels:  accessibility
Ej2 React Ui Components
Syncfusion React UI components library offer more than 50+ cross-browser, responsive, and lightweight react UI controls for building modern web applications.
Stars: ✭ 166 (-92.42%)
Mutual labels:  accessibility
Empathy Prompts
💡 Ideas to help consider Inclusive Design principles when making things for others to use.
Stars: ✭ 173 (-92.1%)
Mutual labels:  accessibility
Scrawl Canvas
Responsive, integrated and interactive HTML5 canvas elements. Scrawl-canvas is a JavaScript library designed to make using the HTML5 canvas element a bit easier, and a bit more fun!
Stars: ✭ 134 (-93.88%)
Mutual labels:  accessibility
Bootstrap Vue
BootstrapVue provides one of the most comprehensive implementations of Bootstrap v4 for Vue.js. With extensive and automated WAI-ARIA accessibility markup.
Stars: ✭ 13,603 (+521.14%)
Mutual labels:  accessibility
Focusoverlay
Library for creating animated overlays on focused elements
Stars: ✭ 167 (-92.37%)
Mutual labels:  accessibility
Lighthouse Check Action
GitHub Action for running @GoogleChromeLabs Lighthouse audits with all the bells and whistles 🔔 Multiple audits, Slack notifications, and more!
Stars: ✭ 175 (-92.01%)
Mutual labels:  accessibility
Houdini
A simple, accessible show-and-hide/accordion script.
Stars: ✭ 148 (-93.24%)
Mutual labels:  accessibility
Visible
🦉 Accessibility testing framework at the next level
Stars: ✭ 164 (-92.51%)
Mutual labels:  accessibility
Gtxilib
Google Toolbox for Accessibility for iOS
Stars: ✭ 177 (-91.92%)
Mutual labels:  accessibility
React Command Palette
An accessible browser compatible javascript command palette
Stars: ✭ 140 (-93.61%)
Mutual labels:  accessibility
Wwdc Notes
WWDCNotes.com content ✨
Stars: ✭ 183 (-91.64%)
Mutual labels:  accessibility
Morse Learn
A fun little web app to help you learn Morse code on Gboard.
Stars: ✭ 140 (-93.61%)
Mutual labels:  accessibility
Sanderling
APIs and libraries to read information directly from the EVE Online game client.
Stars: ✭ 169 (-92.28%)
Mutual labels:  accessibility
Capable
Keep track of accessibility settings, leverage high contrast colors, and use scalable fonts to enable users with disabilities to use your app.
Stars: ✭ 189 (-91.37%)
Mutual labels:  accessibility
Vue Announcer
A simple way with Vue to announce any useful information for screen readers.
Stars: ✭ 185 (-91.55%)
Mutual labels:  accessibility
Environmentoverrides
QA assistant for a SwiftUI app: change the color scheme, accessibility settings, and localization on the fly!
Stars: ✭ 181 (-91.74%)
Mutual labels:  accessibility

accessibilityjs build status

Client side accessibility error scanner.

Install

npm install accessibilityjs --save

Usage

import {scanForProblems} from 'accessibilityjs'

function logError(error) {
  error.element.classList.add('accessibility-error')
  error.element.addEventListener('click', function () {
    alert(`${error.name}\n\n${error.message}`)
  }, {once: true})
}

document.addEventListener('DOMContentLoaded', function() {
  scanForProblems(document, logError)
})

List of errors:

  • ImageWithoutAltAttributeError
  • ElementWithoutLabelError
  • LinkWithoutLabelOrRoleError
  • LabelMissingControlError
  • InputMissingLabelError
  • ButtonWithoutLabelError
  • ARIAAttributeMissingError

Scenario

In GitHub we use this script to scan for inaccessible elements in development and production staff mode. We style the elements with red borders in the logError function passed in, and add a click handler explaining the reasons.

Red borders are added to offending elements example

An alert pops up on clicking the elements

Browser support

  • Chrome
  • Firefox
  • Safari 6+
  • Internet Explorer 9+
  • Microsoft Edge

Internet Explorer and Edge require a polyfill for closest.

Development

> npm install
> npm test
> npm run example
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].