diff --git a/src/components/rating/rating.ts b/src/components/rating/rating.ts index ad868caf8..2697ec53c 100644 --- a/src/components/rating/rating.ts +++ b/src/components/rating/rating.ts @@ -252,9 +252,6 @@ export default class SlRating extends ShoelaceElement { ${counter.map(index => { if (displayValue > index && displayValue < index + 1) { - const clipLeft = styleMap({ clipPath: `inset(0 ${100 - ((displayValue - index) / 1) * 100}% 0 0)` }); - const clipRight = styleMap({ clipPath: `inset(0 0 0 ${100 - ((displayValue - index) / 1) * 100}%)` }); - // Users can click the current value to clear the rating. When this happens, we set this.isHovering to // false to prevent the hover state from confusing them as they move the mouse out of the control. This // extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol. @@ -268,8 +265,23 @@ export default class SlRating extends ShoelaceElement { role="presentation" @mouseenter=${this.handleMouseEnter} > -
${unsafeHTML(this.getSymbol(index + 1))}
-
+
+ ${unsafeHTML(this.getSymbol(index + 1))} +
+
${unsafeHTML(this.getSymbol(index + 1))}