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

Commit 31d5ceb

Browse files
albaringigitux
authored andcommitted
Fix the on sale badge for product blocks (#10550)
* Fix the `on sale` badge for product blocks * Fix in the editor
1 parent 67afe86 commit 31d5ceb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

assets/css/editor.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
.wc-block-grid__product {
1010
margin: 0 0 $gap-large 0;
11+
12+
.wc-block-grid__product-onsale {
13+
position: absolute;
14+
}
1115
}
1216
}
1317

assets/css/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
}
140140
}
141141
}
142-
.wc-block-grid__product-onsale {
142+
.wc-block-grid .wc-block-grid__product-onsale {
143143
@include font-size(small);
144144
padding: em($gap-smallest) em($gap-small);
145145
display: inline-block;

0 commit comments

Comments
 (0)