-
Notifications
You must be signed in to change notification settings - Fork 219
Fixes to Twenty Twenty product grid styles #2573
Conversation
Size Change: +275 B (0%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
I'm a little confused - those screenshots are a real spot-the-difference 🤣 Summarising the changes:
(1) makes total sense to me.
I get it now :)
Bug: |
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.
The underlining fix looks good :)
However I think there's still an issue with the default sale badge in product image. This was just a quick test in Chrome, I'm happy to retest across browsers when this issue is fixed.
FYI it took a little bit of research/experimentation to understand the problem, I've added a comment with my understanding.
} | ||
|
||
// These styles are not applied to the All Products atomic block, so it can be positioned normally. | ||
.wc-block-grid__products .wc-block-grid__product-onsale:not(.wc-block-component__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.
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.
Ah, I missed that. Should be fixed in 940ab69.
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.
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.
Ah, my bad, I forgot they could be aligned to the left and to the center. The CSS selector I wrote was only targeting them when they were right-aligned. 🤦
Should be fixed with 20b9ea4.
Sorry for not being clear enough, some times when working on an issue I think other people will be in my mind. 😅 So yes, this PR is about: removing the discounted price underline (#2421) and allowing the All Products sale badge inner block to be positioned normally (#2537). I updated this PR fixing the reported issue. Willing to take another look @haszari? |
20b9ea4
to
5bd32ce
Compare
FYI @Aljullu I rebased this :) |
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.
Looking good - tested a few variations in Firefox, Chrome and Safari and saw no issues. Thanks @Aljullu :)
Fixes #2537.
Fixes #2421.
Related pull in Core: woocommerce/woocommerce#26608.
Screenshots
Hand-Picked Products
Before:
After:
All Products
Before:
After:
(notice there are some alignment/marging issues, but those are being handled/tracked in woocommerce/woocommerce#26516 and #2565)
How to test the changes in this Pull Request:
Changelog