File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
app/code/Magento/Review/view/frontend/templates/helper Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ $urlForm = $block->getReviewsUrl() . '#review-form';
19
19
<?php if ($ rating ):?>
20
20
<div class="rating-summary">
21
21
<span class="label"><span><?= $ block ->escapeHtml (__ ('Rating ' )) ?> :</span></span>
22
- <div class="rating-result" title="<?= $ block ->escapeHtmlAttr ($ rating ); ?> %">
22
+ <div class="rating-result"
23
+ id="rating-result_<?= /* @noEscape */ $ block ->getProduct ()->getId () ?> "
24
+ title="<?= $ block ->escapeHtmlAttr ($ rating ) ?> %"
25
+ >
23
26
<span>
24
27
<span>
25
28
<span itemprop="ratingValue"><?= $ block ->escapeHtml ($ rating ); ?>
@@ -28,9 +31,10 @@ $urlForm = $block->getReviewsUrl() . '#review-form';
28
31
</span>
29
32
</div>
30
33
</div>
31
- <?= /* @noEscape */ $ secureRenderer ->renderStyleAsTag (
32
- "width: " . $ block ->escapeHtmlAttr ($ rating ) . "% " ,
33
- 'div.rating-summary div.rating-result>span:first-child '
34
+ <?= /* @noEscape */
35
+ $ secureRenderer ->renderStyleAsTag (
36
+ 'width: ' . $ block ->escapeHtmlAttr ($ rating ) . '% ' ,
37
+ '#rating-result_ ' . $ block ->getProduct ()->getId () . ' span '
34
38
) ?>
35
39
<?php endif ;?>
36
40
<div class="reviews-actions">
You can’t perform that action at this time.
0 commit comments