Closed cvrebert closed 9 years ago
Thanks for that. In my tests the modal is focused on show. However you are right that the trigger should be focused on hide.
https://github.com/ResponsiveBP/Responsive/blob/v4/src/js/responsive.modal.js#L135
I beg to differ regarding show. Screencast on Mac Chrome: Note the blue focus ring on the link.
No worries, thanks . Feel free to submit a pull request if you spot what is wrong.
Not interested in investigating the cause... Anyway, happy hunting!
<a>
that triggered the modal focused. For proper accessibility, the modal should become focused instead.<body>
. For better accessibility, the focus should be returned to the link that originally activated the modal.