Skip to content

Image: Close button in the lightbox hard to see with dark images #51126

@gziolo

Description

@gziolo

Description

When using the lightbox behavior for the Image block that contains a dark image, it displays the Close button in a way that is hard to see it.

Step-by-step reproduction instructions

  1. Activate the experiment that enables Interactivity API and Behaviors.
  2. Go to the post editor.
  3. Upload an image with a dark area around borders, for example:
Screenshot-2023-05-30-at-10 06 09
  1. Set the Resolution to Full Size. Alternatively, it might work with different settings depending on the screen-size used.
  2. In the advanced settings for the Image block, activate the lightbox behavior.
  3. Publish the post.
  4. Navigate to the post on the front end.
  5. Open the lightbox and check whether the Close button is correctly displayed.

Screenshots, screen recording, code snippet

Editor view:

Screenshot 2023-05-31 at 12 40 12

Frontend view:

Screenshot 2023-05-31 at 12 39 59

Screenshot 2023-05-30 at 14 50 27


Lightbox view:

Screenshot 2023-05-31 at 12 39 39

Screenshot 2023-05-30 at 14 50 40

Environment info

  • WordPress 6.2, Gutenberg latest (trunk)

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

Labels

[Block] ImageAffects the Image Block[Feature] Interactivity APIAPI to add frontend interactivity to blocks.[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