File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
app/code/Magento/Review/view/frontend/templates/product/view Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,12 @@ $format = $block->getDateFormat() ?: \IntlDateFormatter::SHORT;
49
49
title="<?= $ escaper ->escapeHtmlAttr ($ _vote ->getPercent ()) ?> %">
50
50
<meta itemprop="worstRating" content="1"/>
51
51
<meta itemprop="bestRating" content="100"/>
52
- <span>
52
+ <span style="width: <?= $ block -> escapeHtmlAttr ( $ rating ); ?> %" >
53
53
<span itemprop="ratingValue">
54
54
<?= $ escaper ->escapeHtml ($ _vote ->getPercent ()) ?> %
55
55
</span>
56
56
</span>
57
57
</div>
58
- <?= /* @noEscape */ $ secureRenderer ->renderStyleAsTag (
59
- 'width: ' . $ _vote ->getPercent () . '% ' ,
60
- 'div#review_ ' . $ _review ->getReviewId ()
61
- . '_vote_ ' . $ _vote ->getVoteId () . ' span '
62
- ) ?>
63
58
</div>
64
59
<?php endforeach ; ?>
65
60
</div>
You can’t perform that action at this time.
0 commit comments