Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 500 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 500 Bytes

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

Features:

  • Leveraging the native <dialog> element if desired
  • Closing dialog on overlay click and ESC
  • Toggling aria-* attributes
  • Trapping and restoring focus
  • Firing events
  • DOM and JS APIs
  • Fast and tiny