From c77ff8989b5061d7c6b8155a6448ba2e0f7482ca Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Fri, 5 May 2023 09:39:28 +1000 Subject: [PATCH] Include precision in rating star classname (#3719) --- ui/v2.5/src/components/Shared/Rating/RatingStars.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/v2.5/src/components/Shared/Rating/RatingStars.tsx b/ui/v2.5/src/components/Shared/Rating/RatingStars.tsx index 99e2e5be6..d50700ce7 100644 --- a/ui/v2.5/src/components/Shared/Rating/RatingStars.tsx +++ b/ui/v2.5/src/components/Shared/Rating/RatingStars.tsx @@ -240,8 +240,10 @@ export const RatingStars: React.FC = ( ); }; + const precisionClassName = `rating-stars-precision-${props.precision}`; + return ( -
+
{Array.from(Array(max)).map((value, index) => renderRatingButton(index + 1) )}