You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2018. It is now read-only.
I don't see any ability to close modals using the esc key. I think this is a cool project that could definitely take from bootstrap's ARIA use and implement with this project…maybe even better. Thoughts?
The text was updated successfully, but these errors were encountered:
I've been exploring light, vanilla modal solutions. One I was considering (before I found this), here, checks for mousetrap.js as an optional dependency and uses it for keyboard control. This would be a way to add keyboard controls without adding bloat.
ARIA support would be nice. Keyboard support is possible, but not directly part of basicModal. You can simply check if the user presses the ESC key and fire basicModal.close. It's not build-in because you might want to execute a different ESC action depending on the state of your app/site.
Besides the esc key, in your demos I can't seem to tab to the x button or get out of the modal at all unless I click on the x button. I love how these work & look, but I can't use them if they're not accessible.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't see any ability to close modals using the
esc
key. I think this is a cool project that could definitely take from bootstrap's ARIA use and implement with this project…maybe even better. Thoughts?The text was updated successfully, but these errors were encountered: