From e865e1e4f251bf7842e1bdbcd3deef6d57ee9af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Fri, 19 Jul 2024 09:23:24 +0200 Subject: [PATCH] Product rating - Inherit the color of the star when no ratings (#49678) * Inherit the color of the star * Add changefile(s) from automation for the following project(s): woocommerce-blocks --------- Co-authored-by: github-actions --- .../assets/js/base/components/product-rating/style.scss | 5 +++-- plugins/woocommerce/changelog/49678-fix-nostar-color | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 plugins/woocommerce/changelog/49678-fix-nostar-color diff --git a/plugins/woocommerce-blocks/assets/js/base/components/product-rating/style.scss b/plugins/woocommerce-blocks/assets/js/base/components/product-rating/style.scss index 888c0548297..94e0bdaa63d 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/product-rating/style.scss +++ b/plugins/woocommerce-blocks/assets/js/base/components/product-rating/style.scss @@ -88,14 +88,15 @@ $line-height: 1.618; /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ font-family: WooCommerce; font-weight: 400; - -webkit-text-stroke: 2px var(--wp--preset--color--black, #000); &::before { content: "\53"; top: 0; left: 0; right: 0; position: absolute; - color: transparent; + -webkit-text-stroke-color: inherit; + -webkit-text-stroke-width: 2px; + -webkit-text-fill-color: transparent; white-space: nowrap; text-align: center; } diff --git a/plugins/woocommerce/changelog/49678-fix-nostar-color b/plugins/woocommerce/changelog/49678-fix-nostar-color new file mode 100644 index 00000000000..75f9fb7033c --- /dev/null +++ b/plugins/woocommerce/changelog/49678-fix-nostar-color @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Product rating - Inherit the color of the star when no ratings \ No newline at end of file