-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
New Lightbox with display bug in Classic Themes #54682
Comments
I've been able to reproduce this consistently with classic themes. In the block themes that I tested, the following css is applied (coming from here in Gutenberg )
|
cc @artemiomorales for your awareness! |
@SantosGuillamot and I took a look at this together and I think we've got a fix. I'll send a PR shortly. |
I believe this issue is the same as the issue reported in #54930. |
I think you're right. I just dropped a comment there: link. |
Hello everyone. I'm not sure the fix for the hover/focus implemented in #54837 is enough. Some theme nay use CSS for the hover / focus state that use selectors with a higher specificity. For example, testing with Twenty Seventeen, I still see the theme CSS for the buttons making the image button overlay completely grey on hover, which is the hover sstyle Twenty Seventeen uses for buttons: Looks like the two related CSS selectors have the same specificity but thte theme's stylesheet is enqueued later. Lightbox: Seems to me the lightbox 'reset' rule needs a selector with much higher specificity. See also #55097 for more considerations about overlaying the image with a transparent button. Additionally: |
The outstanding issue here may be resolved by #55212 depending on how conversations on design go. The hover style actually looks good when testing on this branch, so we can consider adding that style by default, or overriding it with a more detailed specificty there. |
I just closed #54940, which is a duplicate of this. There's a related Core ticket: https://core.trac.wordpress.org/ticket/59513 |
This issue is largely fixed in #55212. We may still run across some minor style inconsistencies with the |
@artemiomorales can we close this out at this point and open up any particular remaining issues separately? |
@annezazu Yes! That sounds good to me. |
Description
Image Lightbox (expand on click) in Gutenberg 16.7.0 RC1 works as expected with Theme Twenty Twenty-Two
After changing to classic Theme Twenty Sixteen (or GeneratePress) an error occurs:
Warning: Array to string conversion in ...\wp-includes\formatting.php on line 1104
Checked:
Visual bug:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WP 6.3.1
Gutenberg 16.7.0 RC1
Themes: Twenty Sixteen, GeneratePress
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: