Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix the on sale badge for product blocks #10550

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions assets/css/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

.wc-block-grid__product {
margin: 0 0 $gap-large 0;

.wc-block-grid__product-onsale {
position: absolute;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
}
}
}
.wc-block-grid__product-onsale {
.wc-block-grid .wc-block-grid__product-onsale {
@include font-size(small);
padding: em($gap-smallest) em($gap-small);
display: inline-block;
Expand Down