-
Notifications
You must be signed in to change notification settings - Fork 679
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
[PWA-616] [Mini-Cart] Swatch images are stretched in mini-cart and has… #2457
Conversation
… more blank space in PDP. - fix mini cart image thumbnail
|
Performance Test Results The following fails have been reported by WebpageTest. These numbers indicates a possible performance issue with the PR which requires further manual testing to validate. https://pr-2457.pwa-venia.com : LH Performance Expected 0.85 Actual 0.57, LH Best Practices Expected 1 Actual 0.92 |
… more blank space in PDP. - fix mini cart image thumbnail with aspect ratio
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.
Seems to solve the problem. 👍
It's unfortunate that the solution that's been agreed upon is to enforce an aspect ratio the images don't have, but we can revisit it.
… more blank space in PDP. - fix mini cart image thumbnail with aspect ratio in cart, pdp, and search bar
d6b678c
@@ -15,6 +15,8 @@ | |||
.thumbnail { | |||
height: 75px; | |||
max-height: 75px; | |||
object-fit: contain; | |||
object-position: center; |
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.
This is centered to align with vertically centered product text.
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.
Good catch. 👍
… more blank space in PDP. - set thumbnail images to vertically center
ed22d57
@@ -13,6 +13,9 @@ | |||
background-color: rgb(var(--venia-grey)); | |||
border: solid 1px rgb(var(--venia-border)); | |||
border-radius: 2px; | |||
height: 100%; | |||
object-fit: contain; | |||
object-position: center; |
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.
Small change from UX: vertically center all images
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.
That should work better. 👍
@@ -13,6 +13,9 @@ | |||
background-color: rgb(var(--venia-grey)); | |||
border: solid 1px rgb(var(--venia-border)); | |||
border-radius: 2px; | |||
height: 100%; | |||
object-fit: contain; | |||
object-position: center; |
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.
That should work better. 👍
QA approved |
Description
Ensure mini cart swatch images are not stretched and aligned to top of product info text
Related Issue
https://jira.corp.magento.com/browse/PWA-616
Acceptance
Verification Stakeholders
@jimbo
@dhaecker
Specification
Verification Steps
Screenshots / Screen Captures (if appropriate)
Checklist