-
Notifications
You must be signed in to change notification settings - Fork 219
Product Gallery Thumbnails: Add View all overlay #11087
Product Gallery Thumbnails: Add View all overlay #11087
Conversation
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: +256 B (0%) Total Size: 1.54 MB
ℹ️ View Unchanged
|
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.
…ocks into fix/11083-product-gallery-thumbnails-add-view-all
Bumping this PR to the next release. |
… the View all overlay when in Dialog
…ew all thumbnails overlay even when the 'Full-screen when clicked' setting is disabled
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.
Thanks for addressing the feedback! Overall the PR looks great. I left some questions, could you take a look? Also, I noticed that the E2E tests are failing. Could you check if your PR introduces some regression?
assets/js/blocks/product-gallery/inner-blocks/product-gallery-large-image/frontend.tsx
Show resolved
Hide resolved
@roykho It seems that the failing test is trying to test the Sale Badge but gets tripped up by a second Sale Badge in the Dialog Product Gallery. This seems unrelated to my PR. Should I open a separate bug report? |
Interesting. The overlay is already in trunk. So I am wondering why it isn't failing tests there? |
The overlay? Sorry, I'm not sure I understand. This PR adds the 'View All' overlay. |
…g the first Sale Badge
…ttps://github.com/woocommerce/woocommerce-blocks into fix/11083-product-gallery-thumbnails-add-view-all
…ocks into fix/11083-product-gallery-thumbnails-add-view-all
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.
Great job! Tested nicely as described and thanks for fixing the e2e tests.
This PR adds the "View all" overlay to the last thumbnail which triggers the lightbox/dialog (which will display all the product gallery images).
What
Fixes #11083
Why
The "View all" overlay provides the user with feedback about the total number of available product images in the gallery (and offer a way to view them).
Testing Instructions
Please consider any edge cases this change may have, and also other areas of the product this may impact.
Appearance > Editor
.Templates > Single Product
.Convert to Blocks
if you are using the Classic Templates.Product Gallery
block.Number of Thumbnails
setting) and test the frontend. Make sure the last thumbnail displays an overlay that opens the Dialog on click.Screenshots or screencast
WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog