-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Block] ImageAffects the Image BlockAffects the Image Block[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
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
- Activate the experiment that enables Interactivity API and Behaviors.
- Go to the post editor.
- Upload an image with a dark area around borders, for example:
- Set the
Resolution
toFull Size
. Alternatively, it might work with different settings depending on the screen-size used. - In the advanced settings for the Image block, activate the lightbox behavior.
- Publish the post.
- Navigate to the post on the front end.
- Open the lightbox and check whether the
Close
button is correctly displayed.
Screenshots, screen recording, code snippet
Editor view:
Frontend view:
Lightbox view:
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
Assignees
Labels
[Block] ImageAffects the Image BlockAffects the Image Block[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended