-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightbox trigger BUTTON is not visible on an Image lightbox when Picture Element is enabled #1805
Comments
Hello, I would like to work on this and fix it. Thanks ! |
I suppose there are two ways this could go. One, Gutenberg's CSS selector could be updated to remove the .wp-lightbox-container > :hover+button {
opacity: 1;
} Otherwise, maybe the better course for now would be to conditionally add that CSS from the Modern Image Formats plugin when the Picture Element setting is enabled and there is a Image block that has lightbox enabled. For example, at |
It appears we can't fix this easily. See #1814 (comment):
|
Interesting, maybe we can rethink how the button is placed in Gutenberg? It feels a bit fragile as is. |
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):
That rule would not be necessary if the
BUTTON.lightbox-trigger
wrapped theIMG
, since hovering over the button could always then cause theSVG
to be revealed:Originally discovered in WordPress/gutenberg#68726 (comment).
Steps to reproduce
The lightbox trigger button is not visible.
Screenshots
The lightbox trigger button is supposed to appear in the top-right corner of the image:
The text was updated successfully, but these errors were encountered: