All Projects → jackdomleo7 → Checka11y.css

jackdomleo7 / Checka11y.css

Licence: mit
A CSS stylesheet to quickly highlight a11y concerns.

Projects that are alternatives of or similar to Checka11y.css

Pa11y Ci
Pa11y CI is a CI-centric accessibility test runner, built using Pa11y
Stars: ✭ 291 (-7.03%)
Mutual labels:  accessibility, a11y
Pa11y
Pa11y is your automated accessibility testing pal
Stars: ✭ 3,207 (+924.6%)
Mutual labels:  accessibility, a11y
AccessSniff
Automated accessibility testing using HTML_Codesniffer (WCAG and Section508)
Stars: ✭ 84 (-73.16%)
Mutual labels:  accessibility, a11y
Whocanuse
WhoCanUse is a tool that brings attention and understanding to how color contrast can affect different people with visual impairments.
Stars: ✭ 259 (-17.25%)
Mutual labels:  accessibility, a11y
Js Offcanvas
A lightweight, flexible jQuery off-canvas navigation plugin which lets you create fully accessible sidebar or top/bottom sliding (or push) panels with keyboard interactions and ARIA attributes.
Stars: ✭ 272 (-13.1%)
Mutual labels:  accessibility, a11y
DomainAccessibilityAudit
Web application to create domain and subdomain accessibility audits, with violation statistics.
Stars: ✭ 41 (-86.9%)
Mutual labels:  accessibility, a11y
Parvus
An accessible, open-source image lightbox with no dependencies.
Stars: ✭ 248 (-20.77%)
Mutual labels:  accessibility, a11y
agnosticui
AgnosticUI is a set of UI primitives that start their lives in clean HTML and CSS. These standards compliant components are then copied to our framework implementations in: React, Vue 3, Angular, and Svelte.
Stars: ✭ 326 (+4.15%)
Mutual labels:  accessibility, a11y
A11y Courses
Courses offered in web accessibility (and other learning opportunities)
Stars: ✭ 288 (-7.99%)
Mutual labels:  accessibility, a11y
chaarts
Charts with HTML & CSS
Stars: ✭ 79 (-74.76%)
Mutual labels:  accessibility, a11y
enabler
✋ Accessibility analyzer for your frontend.
Stars: ✭ 19 (-93.93%)
Mutual labels:  accessibility, a11y
A11y Toggle
A tiny script for accessible content toggles.
Stars: ✭ 304 (-2.88%)
Mutual labels:  accessibility, a11y
accessibility-cloud
👩🏽‍🦯🦮👩🏻‍🦽👩🏿‍🦼 the platform to exchange physical accessibility data in a standardized, future-proof, easy-to-use way.
Stars: ✭ 37 (-88.18%)
Mutual labels:  accessibility, a11y
bookworm
The Universally Accessible document Reader
Stars: ✭ 50 (-84.03%)
Mutual labels:  accessibility, a11y
AT-browser-tests
HTML tests for various uses, including HTML5accessibility.com and JAWS tests
Stars: ✭ 74 (-76.36%)
Mutual labels:  accessibility, a11y
van11y-accessible-hide-show-aria
ES2015 accessible hide-show system (collapsible regions), using ARIA
Stars: ✭ 34 (-89.14%)
Mutual labels:  accessibility, a11y
quiz-extensions
A self-service LTI for faculty to easily extend time for multiple users for all quizzes at once.
Stars: ✭ 15 (-95.21%)
Mutual labels:  accessibility, a11y
accessibility-testing-tools
A collection of useful tools for accessibility testing and debugging in the browser, online and desktop
Stars: ✭ 18 (-94.25%)
Mutual labels:  accessibility, a11y
a11ymyths
a11ymyths.com
Stars: ✭ 26 (-91.69%)
Mutual labels:  accessibility, a11y
react-native-aria
A library of React Hooks for React-Native (Android/iOS/web) to provide accessible UI primitives for a design system.
Stars: ✭ 164 (-47.6%)
Mutual labels:  accessibility, a11y

Checka11y.css logo

Buy Me A Coffee Checka11y.css - A CSS stylesheet to quickly highlight a11y concerns. | Product Hunt

Maintenance MIT License Brotli size

GitHub stars GitHub release (latest by date) npm jsDelivr hits (npm)

Chrome Web Store Mozilla Add-on


Checka11y.css

A CSS stylesheet to quickly highlight a11y concerns.

LightweightModernAccessibileCustomisableSimple

The first line of defence for testing accessibility.

Designed to quickly highlight some common accessibility errors and warnings that can be easily and quickly rectified.

Recommended before turning to automation tools and scanners such as Lighthouse on Chrome.

Remember not to push this to production!

A great tool for:

  • Websites and web applications to begin improving their accessibility.
  • Developers and testers/QA to learn more about accessibility and creating accessible websites and applications.

Features

Our features are always checked against the W3C accessibility guidelines.

A list of some common a11y concerns Checka11y.css will check for and highlight :

  • Check for invalid HTML elements nested inside of <a> and <button>
  • Check for missing alt attributes on images
  • Check for media that is set to autoplay
  • Check <li> is the only direct child of <ol> and <ul>
  • Check for programmable-only tabindex attributes on invalid HTML elements

See a full list of features here.

Other features:

  • Clear a11y errors and warnings with informative messages and error codes (see codes.md for more details on the specific errors & warnings)
  • Options to import via CDN, npm or yarn
  • Customise the error and warning colors
  • No dependencies
  • Also available on the Chrome Web Store and as a Firefox add-on (click here to view GitHub project)

Error/Warning Codes

When using Checka11y.css, you will notice some codes prefixed with either "E" or "W". E.g.

E0006 error code for HTML element without a lang attribute

If you wanted more details on this error and how to resolve it, you can reference the codes.md file and find the code "E0006".


Usage

CDN

In the below CDN links:

  • Replace :version with a version listed here (latest version is always recommended). If you always want to get the latest stylesheet, remove @:version completely (Not recommended).
  • Replace :stylesheet with one of the listed stylesheets below:
    • checka11y.css (errors & warnings, recommended)
    • checka11y-errors.css (errors only)
    • checka11y-warnings.css (errors only)
<!-- HTML -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]:version/:stylesheet" />
/* CSS */
@import url('https://cdn.jsdelivr.net/npm/[email protected]:version/:stylesheet');

Package manager (npm or yarn)

It is best practice to install Checka11y.css as a dev dependency rather than a dependency and ensure you only use it in your local/developer environment (do not push this stylesheet to your production environment). You can install checka11y-css via npm or yarn.

First install via npm

npm install checka11y-css --save-dev

Or install via yarn

yarn add --dev checka11y-css

Then import into your JavaScript

import 'checka11y-css';

Or import the SCSS or CSS into your Sass/SCSS In the below imports, replace :file with one of the options below:

  • Errors & warnings (recommended)
    • src/checka11y (.scss file)
    • checka11y.css (.css file)
  • src/errors/checka11y-errors (errors only)
  • src/warnings/checka11y-warnings (warnings only)
/* Webpack */
@import '~checka11y-css/:file';

/* Non-webpack */
@import 'path/to/node_modules/checka11y-css/:file';

Using Angular?

👉 Go to ngx-checka11y


Why is accessibility important?

Accessibility is important to ensure your website or web application is accessible to as many users and types of users you can cater for.

Often, we can improve the accessibility on our websites and web applications by focusing on the obvious first - these are small quick wins that are easy to implement or rectify and may not require a lot of time investment.

Checka11y.css will instantly highlight as many HTML validity and HTML semantic errors and warnings as we can, to help you to improve your website or web application.

Click here to read more about web accessibility.


License

Type - MIT

Read license

You have the right to use this library in any project FREE of charge for personal and commercial use.

Commercial use should consider a small donation on Buy Me a Coffee.

You do not have the right to resell, sublicense or redistribute (even for free) this library.

Checka11y.css is licensed under MIT. As a minimum, you are required to KEEP AND NOT REMOVE the following code at the beginning of your downloaded/installed Checka11y.css CSS, where :version is replaced with the version number you are using:

/*! Checka11y.css v:version | MIT License | github.com/jackdomleo7/Checka11y.css */

Contributing

  1. Read CONTRIBUTING guidelines
  2. git clone https://github.com/jackdomleo7/Checka11y.css.git or fork the repo
  3. cd Checka11y.css
  4. npm i
  5. Edit src/**/*.scss and run npm run build in the root of the project to regenerate the CSS found at /checka11y.css (DO NOT edit this file directly).
  6. To add error/warning styles and messages to your features, @extend one of the placeholders and @include contentMessage() from src/_base.scss.
  7. Add tests to your features in cypress folder (edit the element file or create a new one if needed)
  8. Run tests: npm run cypress:open or npm run cypress:run (headless)
  • You can also run tests for a specific tag/attribute by doing npm run cypress:run -- --spec cypress/integration/{file-to-test}
  1. Add the feature to the features.md & codes.md with a new error or warning code

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].