9

Introduction | a11y-dialog

 3 years ago
source link: https://a11y-dialog.netlify.app/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Version: 7.0.0

Introduction

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

a11y-dialog: 1.3Kb

✔︎ 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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK