Skip to content

A very lightweight and flexible accessible modal dialog script.

License

Notifications You must be signed in to change notification settings

JshGrn/a11y-dialog

 
 

Repository files navigation

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

About

A very lightweight and flexible accessible modal dialog script.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.2%
  • HTML 12.2%
  • CSS 9.6%