Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product Gallery block > Pop-Up: Fix overlay sizing issue #44479

Merged
merged 5 commits into from Feb 9, 2024

Conversation

thealexandrelara
Copy link
Contributor

@thealexandrelara thealexandrelara commented Feb 8, 2024

Changes proposed in this Pull Request:

This PR fixes an issue when you visit a product with a single image and open the Product Gallery Pop-Up. Depending on the size of the image, if it does not fill the entire screen, it can cause the background to be an incorrect color and the close button to appear in the middle of the screen.

Closes #43826 .

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Navigate to Single Product template (Appearance > Editor > Templates > Single Product template).
  2. Click on "Edit" to open the Template editor.
  3. In the editor, you should see a block inserter icon or an option to "Add Block." Click on it.
  4. In the block inserter, search for "Product Gallery" or browse through the available blocks until you find it.
  5. Click on the "Product Gallery" block to add it to your content.
  6. Visit a product with a single image.
  7. Click on the large image to open the Product Gallery Pop-Up;
  8. Make sure the close button appears correctly positioned to the top right of the screen, the background color of the pop-up is white, and you can navigate between the images without any issue;
  9. Close the pop-up and visit a product with multiple images.
  10. Make sure the close button appears correctly positioned to the top right of the screen, the background color of the pop-up is white, and you can navigate between the images without any issue;
Before After
CleanShot 2024-02-08 at 16 55 12@2x CleanShot 2024-02-08 at 16 52 01@2x

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Fix overlay sizing issue with the Product Gallery Pop-Up.

Comment

@thealexandrelara thealexandrelara added type: bug The issue is a confirmed bug. team: Kirigami & Origami block: product gallery Issues related to the Product Gallery block. labels Feb 8, 2024
@thealexandrelara thealexandrelara self-assigned this Feb 8, 2024
@woocommercebot woocommercebot requested review from a team and kmanijak and removed request for a team February 8, 2024 19:51
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Feb 8, 2024
Copy link
Contributor

github-actions bot commented Feb 8, 2024

Hi @kmanijak,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

github-actions bot commented Feb 8, 2024

Test Results Summary

Commit SHA: 713606e

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 38s
E2E Tests257005703145m 28s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

Copy link
Contributor

@kmanijak kmanijak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, I didn't spot any issues! 🚀

@thealexandrelara thealexandrelara merged commit 74c6fca into trunk Feb 9, 2024
46 checks passed
@thealexandrelara thealexandrelara deleted the fix/43826-overlay-sizing-issue branch February 9, 2024 14:38
@github-actions github-actions bot added this to the 8.7.0 milestone Feb 9, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Feb 9, 2024
@nigeljamesstevenson nigeljamesstevenson added needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block: product gallery Issues related to the Product Gallery block. needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris team: Kirigami & Origami type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Product Gallery] Overlay sizing issue
3 participants