View Code? Open in Web Editor
NEW
A small Javascript library to focus trap a user on your website, helping you comply with W3C accessibility guidelines.
Home Page: https://npmjs.com/package/tab-fixation
License: GNU General Public License v3.0
tab-fixation's People
Contributors
Stargazers
Watchers
tab-fixation's Issues
At the moment you must provide a parent id to loop through, but what if you don't want to, or can't. We should allow the user to provide any DOM node they want.
In order to be WCAG compliant you must be able to return to the previous focus before entering a focus trap.
Can be achieved by saving the previous focus in a class var