Skip to content

Commit a47f368

Browse files
committed
fix: Rating id not a valid XML name
1 parent 19c1219 commit a47f368

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/rating/Rating.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
<!-- eslint-disable @typescript-eslint/no-unused-vars -->
2222
{#each Array(fullStars) as _, index}
2323
<Icon {size} fillPercent={100} starIndex={index}
24-
groupId={`${ratingGroupId}-full`} />
24+
groupId={`rating-${ratingGroupId}-full`} />
2525
{/each}
2626
{#if percentRating}
2727
<Icon {size} fillPercent={percentRating} starIndex={fullStars}
28-
groupId={`${ratingGroupId}-partial`} />
28+
groupId={`rating-${ratingGroupId}-partial`} />
2929
{/if}
3030
{#each Array(grayStars) as _, index}
3131
<Icon {size} fillPercent={0} starIndex={index}
32-
groupId={`${ratingGroupId}-empty`} />
32+
groupId={`rating-${ratingGroupId}-empty`} />
3333
{/each}
3434
{#if text}
3535
{@render text()}

0 commit comments

Comments
 (0)