biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.03k stars 228 forks source link

Accessibility: Request for Keyboard Tabbing Functionality for Inline Content #423

Open elliehaupt opened 1 year ago

elliehaupt commented 1 year ago

Please describe the feature you want to be implemented. I would like to request the implementation of keyboard tabbing functionality for inline content within the .glightbox library. Currently, when inline content is opened within the lightbox, it consumes the keyboard functions, preventing users from navigating through the content using keyboard tabbing.

Explain why the feature is useful This feature is crucial for enhancing accessibility within the lightbox. By enabling keyboard tabbing, users who rely on keyboard navigation or assistive technologies can easily navigate through the content within the lightbox. This ensures that the lightbox is accessible to a wider range of users, including those with motor disabilities or visual impairments.

Have you seen it somewhere else? Other lightboxes such as https://midzer.github.io/tobii/demo/ let users tab through content opened within the lightbox.

Additional context Currently, when inline content is opened in the lightbox, keyboard tabbing does not function as expected, limiting the accessibility of the lightbox for users who rely on keyboard navigation. By implementing keyboard tabbing support, .glightbox can provide a more inclusive and accessible experience for all users.