From da012ed2178b5b8475b8d6ec85553279490332ab Mon Sep 17 00:00:00 2001 From: David Arenas Date: Tue, 10 Dec 2024 17:16:09 +0100 Subject: [PATCH] Image Block: Change how the Image's overlay styles are applied (#67788) Co-authored-by: DAreRodz Co-authored-by: SantosGuillamot --- packages/block-library/src/image/index.php | 2 +- packages/block-library/src/image/view.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/image/index.php b/packages/block-library/src/image/index.php index 1a5fae7ce9cbb7..ac03011d73f63a 100644 --- a/packages/block-library/src/image/index.php +++ b/packages/block-library/src/image/index.php @@ -290,6 +290,7 @@ class="wp-lightbox-overlay zoom" data-wp-on-async--click="actions.hideLightbox" data-wp-on-async-window--resize="callbacks.setOverlayStyles" data-wp-on-async-window--scroll="actions.handleScroll" + data-wp-bind--style="state.overlayStyles" tabindex="-1" >