Open grahamarmfield opened 2 years ago
@grahamarmfield , I am able to use my keyboard and the lightbox controls by using the directional arrows on the keyboard. Are you able to use this functionality?
We have keyboard controls present. I wonder if this story would be better suited to be geared toward accessibility instead. We should likely have screen reader text whenever the LightBox is open anyway.
Describe the bug:
Using an Offset block in a page with lightbox activated, the lightbox cannot be actioned by keyboard only users as the images in the Offset do not get focus. Also, if Lightbox triggered by mouse click, the keyboard focus remains on the underlying page.
To reproduce:
Expected behavior:
As a keyboard user I would expect to be able to operate the lightbox on any of the images in the Hero block. I would expect to see a focus indication around each image in turn, and to be able to trigger the lightbox using the Enter key (or space bar if this is a button). Once the lightbox is open I would expect keyboard focus to be transferred into the lightbox controls so that I can close lightbox and move to previous/next image as required.
Extra labelling may be required for screen reader users to allow them to fully understand what's going on.
Screenshots:
Isolating the problem:
WordPress version:
WP 5.9.1
Gutenberg version:
Not using Gutenberg plugin.