HTMLGuyLLC / jAlert

jQuery alert/modal/lightbox plugin
https://htmlguyllc.github.io/jAlert/
MIT License
76 stars 35 forks source link

Accessibility #66

Closed cvschleich closed 4 years ago

cvschleich commented 4 years ago

Hello! I use jAlert in my WordPress Plugin Exit Notifier. It has been a perfect utility for my needs.

I have had a few requests to address accessibility concerns, primarily with keeping tab keypresses within the alert window. Is this something reasonable and possible? Is there any chance of getting this into the roadmap for future implementation?

You can see the implementation and behavior here: https://cvstech.com/exitnotifier. Simply click the link in the "Download the plugin" paragraph, and then start hitting the tab key. You will see it activate the Cancel button, then go to the address bar, and then begin to step through the web page in the background of the jAlert box. By accessibility rules, the tab key should stay contained in the jAlert window and step through the available controls within jAlert.

Here's a pretty informative topic in StackOverflow addressing this very issue: https://stackoverflow.com/questions/50178419/how-can-restrict-the-tab-key-press-only-within-the-modal-popup-when-its-open

Thanks for making and maintaining jAlert!