Closed BartDelrue closed 3 years ago
Any updates on this? WCAG 2.0 compliance would be so nice for this awesome library!
+1. I might have to strip this out as it's currently not usable with a keyboard at all once you open an image
This issue has been automatically marked as stale because it has not had recent activity. If the issue is still valid for version 2.x, please re-open. Apologize for not responding on time. Thank you for your contributions.
There are some accessibility issues I'd like to tackle to make lightgallery WCAG 2.0 compliant.
I've had a look at the code and I could create a tab trap to take care of the focusable elements. Unfortunately all module 'buttons' are added to the DOM async each time the gallery is opened This means you have to collect all focusable elements each keypress event, just to make sure all buttons have been added. I'd rather just do it once during initialization and store them. Would it be an option to add a callback to all module init functions?