sachinchoolur / lightgallery.js

Full featured JavaScript image & video gallery. No dependencies
https://sachinchoolur.github.io/lightgallery.js/
Other
5.3k stars 596 forks source link

Accessibility #79

Closed BartDelrue closed 3 years ago

BartDelrue commented 6 years ago

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?

niemenmaa commented 6 years ago

Any updates on this? WCAG 2.0 compliance would be so nice for this awesome library!

darylknight commented 4 years ago

+1. I might have to strip this out as it's currently not usable with a keyboard at all once you open an image

stale[bot] commented 3 years ago

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.