So I'm trying to make my site more accessible, and part of that is helping people navigate the site by tabbing through the links. The issue I've come across is that tabbing won't play nicely with my custom modals I've built.
For example, on Bootstrap you can tab through the links on the page, but when you launch a modal the focus shifts to the modal's content, and you can then only tab through the links in the modal. Close the modal and you go back to tabbing through the links on the page.
On my site, when I launch the modal the focus stays on the launch link. If I continue to tab, I just continue on the page links and not the contents of the modal.
How do I get the modal to be in focus, and restrict tabbing to the contents of the modal while it's open?
Thanks, I hope my question was clear enough.