Repository navigation
Closed
Labels
BugWhen a feature is broken and / or not performing as intendedCustomer Report [LEGACY]Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report"Triaged[Feature Group] Editor ExperienceFeatures related to Gutenberg integration on WordPress.com.[Feature] CarouselA fullscreen modal appearing when clicking on an image in a gallery or tiled gallery.[Focus] CompatibilityEnsuring our products play well with third-parties[Platform] Atomic[Platform] Simple[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Normal
Description
Impacted plugin
Jetpack
Quick summary
With the release of Lightbox for Image Blocks in the Gutenberg plugin, there's a conflict between Jetpack's Carousel and the core Lightbox behavior when using a core Gallery Block.
Somewhat similar to #19496 and #17484
Steps to reproduce
- Turn on Carousel
- Add a core Gallery Block
- In the Image Block inside the Gallery Block, select "Lightbox" in Advanced > Behaviors
- Open the post/page and click on the image - it will show Carousel first, and after a second click it will show GB's lightbox
A clear and concise description of what you expected to happen.
In core blocks, if I select the Lightbox behavior, it should use that instead of Carousel, as that action is more specific, since it's defined at block-level
What actually happened
Carousel was shown in the first click, and core's Lightbox after trying to exit, creating a confusing experience
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
Logs or notes
WordPress 6.3, Gutenberg 16.5
Metadata
Metadata
Assignees
Labels
BugWhen a feature is broken and / or not performing as intendedCustomer Report [LEGACY]Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report"Triaged[Feature Group] Editor ExperienceFeatures related to Gutenberg integration on WordPress.com.[Feature] CarouselA fullscreen modal appearing when clicking on an image in a gallery or tiled gallery.[Focus] CompatibilityEnsuring our products play well with third-parties[Platform] Atomic[Platform] Simple[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Normal
Type
Projects
- StatusShow more project fieldsDone
Activity
cuemarie commentedon Aug 24, 2023
📌 REPRODUCTION RESULTS
📌 FINDINGS/SCREENSHOTS/VIDEO
Replicated on GB 16.4.0 (on simple) and GB 16.5.0 (on AT). I believe the Image Block > Lightbox feature was released in an early 16.x update, so unclear if this is a new issue or just one that hasn't come up quite yet.
Atomic
CbTTxT.mp4
📌 ACTIONS
jeherve commentedon Aug 29, 2023
TIL about the Lightbox feature in Gutenberg!
It was introduced in WordPress/gutenberg#50373
I'm not sure what should be our approach with this. Looking at Gutenberg's implementation, I would personally think that Jetpack's Carousel feature is more interesting, it offers more features and works better with multiple images. Maybe we should opt to disable Gutenberg's implementation when the Carousel feature is enabled.
I think we may be able to rely on the
WP_Block_Supportsclass here, or maybe on the filter added here:https://github.com/WordPress/gutenberg/blob/676f25961bfab695bacb5dd7ebb10443e49bce23/lib/block-supports/behaviors.php#L28-L35
@artemiomorales I see you worked on the initial implementation of the Lightbox. I'd be curious to have your take on this; do you think third-party plugins should be disabling Gutenberg's Lightbox when they offer a similar feature?
17 remaining items
mrfoxtalbot commentedon Jan 17, 2024
Thank you so much, @jeherve and @michalczaplinski for looking into this.
michalczaplinski commentedon Jan 18, 2024
I also thought that using the PHP filter might do the trick but to no avail 😕:
annezazu commentedon Mar 12, 2024
I just ran into this on my nomad.blog simple site on WPCOM:
Screen.Recording.2024-03-12.at.9.14.09.AM.mov
Why aren't we finding ways to work with Core here and to ensure they work well together?
simison commentedon Mar 12, 2024
@michalczaplinski I'd be interested in ways to disable the Gutenberg lightbox (alongside Jetpack lightbox) for posts Jetpack sends as emails to subscribers.
JS functionality simply doesn't work in emails obviously, but there's button/link added to the markup that we now need to hide via CSS, while ideally we'd just disable markup getting added entirely via PHP. We'd disable only at runtime when rendering the email.
jeherve commentedon Mar 12, 2024
Related discussion: p1710260245886189-slack-CBG1CP4EN
Related Gutenberg issue: WordPress/gutenberg#59797
Carousel: disable WordPress Core' Lightbox option
Carousel: disable WordPress Core' Lightbox option (#36565)
djcowan commentedon Apr 10, 2024
Apologies for dumping this here randomly.
Carousel functionality may conflict with Wordpress 6.5 "Expand on click"
Reference gutenberg/issues/55407
Not sure if I shoud create a new issue and on which repository it belongs
jeherve commentedon Apr 10, 2024
@djcowan Thanks for the warning. Right now, Jetpack's Carousel feature, when enabled, disables the Lightbox feature provided by WordPress Core. We've done that to avoid conflicts between the 2 features. However, it sounds like you may have found a conflict anyway.
Do you think you could create a new issue here with more details explaining how to reproduce the issue, so we can take a closer look?
Thank you!