@mannydiera/ada-modal
v1.0.0
Published
A package to manage focus in your modals and improve your ADA compliance
Downloads
7
Maintainers
Readme
@mannydiera/ada-modal
Manages focus for accessibility in modals
Install
$ npm install @mannydiera/ada-modal
Usage
import { manageFocus } from 'ada-modal';
//Pass ada-modal as click event listener function to the button that opens the modal
// Vanilla JS
button.addEventListener('click', ada-modal('core_id'));
// Angular 1.*
...
// Vue
methods: {
openModal() {
ada-modal('core_id');
},
}
// Angular 2 +
...