Skip to main content
Version: 8.x.x

Introduction

a11y-dialog is a lightweight yet flexible script to create accessible dialog windows.

a11y-dialog: 1.6Kb

  • 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
  • Is unopinionated with styling
  • Is extensively tested and documented
  • Is fast and tiny

You can try the live demo on CodeSandbox.

note

Originally, this repository was a fork from accessible-modal-dialog by Greg Kraus. It has gone through various stages since the initial implementation and both packages are no longer similar in the way they work.