Skip to content

Commit 41ba1a6

Browse files
authored
Update list.phtml
1 parent 6225ed8 commit 41ba1a6

File tree

1 file changed

+1
-6
lines changed
  • app/code/Magento/Review/view/frontend/templates/product/view

1 file changed

+1
-6
lines changed

app/code/Magento/Review/view/frontend/templates/product/view/list.phtml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,12 @@ $format = $block->getDateFormat() ?: \IntlDateFormatter::SHORT;
4949
title="<?= $escaper->escapeHtmlAttr($_vote->getPercent()) ?>%">
5050
<meta itemprop="worstRating" content="1"/>
5151
<meta itemprop="bestRating" content="100"/>
52-
<span>
52+
<span style="width:<?= $block->escapeHtmlAttr($rating); ?>%">
5353
<span itemprop="ratingValue">
5454
<?= $escaper->escapeHtml($_vote->getPercent()) ?>%
5555
</span>
5656
</span>
5757
</div>
58-
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag(
59-
'width:' . $_vote->getPercent() . '%',
60-
'div#review_' . $_review->getReviewId()
61-
. '_vote_' . $_vote->getVoteId() . ' span'
62-
) ?>
6358
</div>
6459
<?php endforeach; ?>
6560
</div>

0 commit comments

Comments
 (0)