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

Commit

Permalink
Fix the on sale badge for product blocks (#10550)
Browse files Browse the repository at this point in the history
* Fix the `on sale` badge for product blocks

* Fix in the editor
  • Loading branch information
albarin committed Aug 11, 2023
1 parent bc6040c commit ff61af9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit ff61af9

Please sign in to comment.