Open
Description
Bug Description
I just found that Modern Image Formats prevents that button from ever being visible on hover when Picture Element is enabled. This is because of this CSS rule (source):
.wp-lightbox-container img:hover+button {
opacity: 1;
}
That rule would not be necessary if the BUTTON.lightbox-trigger
wrapped the IMG
, since hovering over the button could always then cause the SVG
to be revealed:
.wp-lightbox-container button.lightbox-trigger:hover > SVG {
opacity: 1;
}
Originally discovered in WordPress/gutenberg#68726 (comment).
Steps to reproduce
- Activate Modern Image Formats plugin
- Enable Picture Element in the plugin settings
- Upload an image
- Add the image to a new Image block and enable lightbox
- Hover over the Image block with your mouse
The lightbox trigger button is not visible.
Screenshots
The lightbox trigger button is supposed to appear in the top-right corner of the image:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Not Started/Backlog 📆