Experiment: Improvements for the Image block lightbox #50959
Labels
[Block] Image
Affects the Image Block
[Feature] Interactivity API
API to add frontend interactivity to blocks.
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Description
Follow-up to #50373
While testing the Image block lightbox, noticed a few things that can be improved. Main issues:
Step-by-step reproduction instructions
$aria_label = 'Open image lightbox';
aria-label="Close lightbox"
Core blocks
in the Gutenberg Experiments settings page.role=dialog
has anaria-labelledby
attribute that points to the ID of the image with the empty alt text. As such, the dialog is unlabelled.type="button"
attribute.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: