We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41ba1a6 commit 3850c71Copy full SHA for 3850c71
app/code/Magento/Review/view/frontend/templates/view.phtml
@@ -43,15 +43,10 @@
43
<div class="rating-summary item"
44
id="rating-div-<?= $block->escapeHtml($ratingId) ?>">
45
<div class="rating-result" title="<?= /* @noEscape */ $rating ?>%">
46
- <span>
+ <span style="width: <?= $block->escapeHtmlAttr($rating) ?>%">
47
<span><?= /* @noEscape */ $rating ?>%</span>
48
</span>
49
</div>
50
- <?= /* @noEscape */ $secureRenderer->renderStyleAsTag(
51
- "width:" . /* @noEscape */ $rating . "%",
52
- 'div#rating-div-'.$_rating->getRatingId().
53
- '>div.rating-result>span:first-child'
54
- ) ?>
55
56
</td>
57
</tr>
0 commit comments