-
Notifications
You must be signed in to change notification settings - Fork 219
fix: Show sale bage on Product Image Gallery block #8652
fix: Show sale bage on Product Image Gallery block #8652
Conversation
4994ee4
to
6b48d90
Compare
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +142 B (0%) Total Size: 1.12 MB
ℹ️ View Unchanged
|
6b48d90
to
af57923
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working and solving the issue. There is one thing that I'd like to check with you before approving the PR.
Currently, we can have multiple Product Image Gallery blocks added to the page, so I added more than one to the page inside a Group block and I realized the Sale badges are stacking at the top (probably caused by the fact that the span.onsale
class has a position: absolute
), like this:
Do you think this is an issue we have to solve or it would be better to just limit to 1 the amount of product image gallery blocks that we can add to the page?
Great catch! For now, let's limit it to one! I think that we should do this for all blocks related to the Single Product template. Fixed via 97b6a72 |
…ocks into fix/8528-product-image-gallery-block-not-showing-sale-badge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested and confirmed the issue is no longer happening since now the block limit was set to just 1. Thank you for solving it! ✅
The new Product Image Gallery block was not displaying the badge for a product that is on sale. This PR fixes this bug.
Fixes #8528
Testing
User Facing Testing
WooCommerce Visibility