Description
When navigating a lightbox gallery using keyboard (Tab / Shift+Tab), focus escapes outside the lightbox overlay and becomes invisible — the focus indicator disappears entirely, leaving the user with no visual feedback on where they are on the page.
Expected behavior:
Focus cycles only within the lightbox (close button, navigation arrows). When the last focusable element is reached, focus should wrap back to the first one.
Step-by-step reproduction instructions
- Add a Gallery block to a page/post.
- Enable the lightbox option for the gallery.
- Open the published page and open the lightbox by clicking on an image.
- Navigate using the
Tab key repeatedly.
Screenshots, screen recording, code snippet
No response
Environment info
- Gutenberg version: 22.6 RC1, 22.8.-nightly
- Active theme: TT5
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
When navigating a lightbox gallery using keyboard (
Tab/Shift+Tab), focus escapes outside the lightbox overlay and becomes invisible — the focus indicator disappears entirely, leaving the user with no visual feedback on where they are on the page.Expected behavior:
Focus cycles only within the lightbox (close button, navigation arrows). When the last focusable element is reached, focus should wrap back to the first one.
Step-by-step reproduction instructions
Tabkey repeatedly.Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.