This is an example how to implement accessible dialog. This dialog have inert and trap focus. The original code comes from A11ycast channel with topic: Accessible Modal Dialogs. I just update the UI. :)
- Clone this repo.
- Install dependencies with
npm install
. - Run
npm run dev
.
Keep focus on index.html, app.js, style.css and behaviours folder in js folder.