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

Commit

Permalink
restore css for classic product rating html element
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Feb 8, 2022
1 parent 33b6b61 commit 98416dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@

.wc-block-grid__product-rating {
display: block;
color: #000;

.wc-block-grid__product-rating__stars,
.star-rating {
Expand Down Expand Up @@ -139,6 +140,7 @@
}
span::before {
content: "\53\53\53\53\53";
color: inherit;
top: 0;
left: 0;
right: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/BlockTypes/AbstractProductGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ protected function get_rating_html( $product ) {

if ( $rating_count > 0 ) {
return sprintf(
'<div class="wc-block-grid__product-rating">%s</div>',
'<div class="wc-block-grid__product-rating wc-block-components-product-rating">%s</div>',
wc_get_rating_html( $average, $rating_count ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
);
}
Expand Down

0 comments on commit 98416dc

Please sign in to comment.