Skip to content

Carousel: conflict with Gutenberg Lightbox behavior #32668

@liviopv

Description

@liviopv

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

  1. Turn on Carousel
  2. Add a core Gallery Block
  3. In the Image Block inside the Gallery Block, select "Lightbox" in Advanced > Behaviors
  4. 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

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions