Skip to content

Commit 6225ed8

Browse files
authored
Remove unnecessary scripts
1 parent e8a310c commit 6225ed8

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,14 @@ $urlForm = $block->getReviewsUrl() . '#review-form';
2020
<div class="rating-summary">
2121
<span class="label"><span><?= $block->escapeHtml(__('Rating')) ?>:</span></span>
2222
<div class="rating-result" title="<?= $block->escapeHtmlAttr($rating); ?>%">
23-
<span>
23+
<span style="width:<?= $block->escapeHtmlAttr($rating); ?>%">
2424
<span>
2525
<span itemprop="ratingValue"><?= $block->escapeHtml($rating); ?>
2626
</span>% of <span itemprop="bestRating">100</span>
2727
</span>
2828
</span>
2929
</div>
3030
</div>
31-
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag(
32-
"width:" . $block->escapeHtmlAttr($rating) . "%",
33-
'div.rating-summary div.rating-result>span:first-child'
34-
) ?>
3531
<?php endif;?>
3632
<div class="reviews-actions">
3733
<a class="action view"

0 commit comments

Comments
 (0)