Skip to content

Commit 3850c71

Browse files
authored
Update view.phtml
1 parent 41ba1a6 commit 3850c71

File tree

1 file changed

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

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,10 @@
4343
<div class="rating-summary item"
4444
id="rating-div-<?= $block->escapeHtml($ratingId) ?>">
4545
<div class="rating-result" title="<?= /* @noEscape */ $rating ?>%">
46-
<span>
46+
<span style="width: <?= $block->escapeHtmlAttr($rating) ?>%">
4747
<span><?= /* @noEscape */ $rating ?>%</span>
4848
</span>
4949
</div>
50-
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag(
51-
"width:" . /* @noEscape */ $rating . "%",
52-
'div#rating-div-'.$_rating->getRatingId().
53-
'>div.rating-result>span:first-child'
54-
) ?>
5550
</div>
5651
</td>
5752
</tr>

0 commit comments

Comments
 (0)