-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stars for reviews in email fronts #15787
Conversation
PR build results: screenshots exceptions (3) webpagetest results -automated message |
@card.starRating.map { numberOfStars => | ||
<div class="review-stars"> | ||
@for(i <- 0 to 4) { | ||
@defining(if(i < numberOfStars) "positive" else "negative") { positiveOrNegative => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the use of positive
or negative
to signify whether the star is yellow or grey... maybe filled
/ full
vs hollow
/ empty
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went for golden
and grey
for consistency with existing review stars: https://github.com/guardian/frontend/blob/master/common/app/views/fragments/items/elements/starRating.scala.html#L5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely 👍
Seen on PROD (merged by @joelochlann 15 minutes and 48 seconds ago) Please check your changes! |
Cards which have a star rating associated with them will display the stars as they do on web fronts.