From cf8dc80c3b0eea603f705f34d0140ca149f350bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Fri, 11 Aug 2023 15:31:56 +0200 Subject: [PATCH 1/2] Fix the `on sale` badge for product blocks --- assets/css/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/style.scss b/assets/css/style.scss index c1f78af42f6..a4810fb9c9e 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -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; From e446c5744563257c6d99263e034d1f8ab978ca98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Fri, 11 Aug 2023 16:00:49 +0200 Subject: [PATCH 2/2] Fix in the editor --- assets/css/editor.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/css/editor.scss b/assets/css/editor.scss index 8ed065aded1..b721f90811c 100644 --- a/assets/css/editor.scss +++ b/assets/css/editor.scss @@ -8,6 +8,10 @@ .wc-block-grid__product { margin: 0 0 $gap-large 0; + + .wc-block-grid__product-onsale { + position: absolute; + } } }