Accessible dialog implementation with Stimulus
https://stimulus-dialog-chalkygames123.netlify.app/
-
Copy src/controllers/dialog-controller.js to your project.
-
Install dependencies (if you haven't already):
$ npm install @hotwired/stimulus body-scroll-lock tabbable
This implementation is intended to support only the modern browsers listed with the defaults
query in Browserslist. To support IE11 as well, please consult the example/support-ie11
branch. Its demo is available here: https://example-support-ie11--stimulus-dialog-chalkygames123.netlify.app/