KittyGiraudel / a11y-dialog

A very lightweight and flexible accessible modal dialog script.

Home Page:https://a11y-dialog.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a lightweight (1.7Kb) yet flexible script to create accessible dialog windows.

Features

  • Follows the Dialog (Modal) pattern from the ARIA Authoring Practices Guide (APG)
  • Supports alert dialogs as per the WAI-ARIA specifications
  • Supports nested dialogs (however questionable)
  • Exposes events to react to changes
  • Provides both a DOM and a JavaScript API
  • Plays nicely with Shadow DOM and web components
  • Is unopinionated with styling
  • Is extensively tested and documented
  • Is fast and tiny

Contributing

Contributing guidelines can be found in CONTRIBUTING.md

About

A very lightweight and flexible accessible modal dialog script.

https://a11y-dialog.netlify.app

License:MIT License


Languages

Language:TypeScript 70.9%Language:HTML 15.2%Language:CSS 7.3%Language:JavaScript 5.2%Language:Shell 1.4%