Skip to content

Commit

Permalink
Add namespace to the modal-open css class
Browse files Browse the repository at this point in the history
  • Loading branch information
thealexandrelara committed Jan 9, 2024
1 parent 6f16137 commit 56537ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/woocommerce-blocks/assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body.modal-open {
body.wc-block-product-gallery-modal-open {
overflow: hidden;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const closeDialog = ( context: ProductGalleryContext ) => {
context.isDialogOpen = false;
// Reset the main image.
context.selectedImage = context.firstMainImageId;
document.body.classList.remove( 'modal-open' );
document.body.classList.remove( 'wc-block-product-gallery-modal-open' );
};

const productGallery = {
Expand Down

0 comments on commit 56537ac

Please sign in to comment.