Skip to content

Image: Captions overlaying images in galleries are still visible when lightbox is opened #63707

Open
@artemiomorales

Description

@artemiomorales

Description

Recently, the lightbox behavior was changed to remove duplicate images in the content (#63381) However, this introduces a bug in which the captions in galleries are still briefly visible when the lightbox is opened, first reported here.

We should determine the appropriate behavior for the caption in these circumstances and fix the lightbox behavior accordingly.

Step-by-step reproduction instructions

  1. Add a gallery block and set captions for few images.
  2. Enable Expand on Click for those images
  3. Set the scroll position of the page to a place where image bottom is near window bottom.
  4. Now click on the image (with caption)
  5. Observe that there is a shadow in place of original image.

Screenshots, screen recording, code snippet

double-image

Environment info

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Block] ImageAffects the Image Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions