Version: 6.1.0


a11y-dialog is a lightweight (1.5Kb) yet flexible script to create accessible dialog windows.

โœ”๏ธŽ 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

You can try the live demo on CodeSandbox.

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.

Last updated on