Rating
The product rating is visually represented with a star rating.
Recommendations#
- The maximum number of 5 stars can be reached.
- If the product has not yet been rated, no stars will appear.
- The number in the bracket indicates how many users have already submitted a rating.
Elements#
The rating component consists of:
- Stars
- Rating number
Overall styling#
- The text style is basic.
- The line-height is set to default.
- The icon star-fill or star-percentage is used.
Spacing & measurements#
- The height of the rating is 16px.
- The width depends on the number of given ratings in the bracket.
Behavior#
The inside of the last star item can be filled from left to right based on percentages. A rating can be interactive (e.g. on product detail page) or static (e.g. on product tile). If the rating is static the rating component has no hover-focus state.
Variants#
Examples#
This is a non-obligatory example of the positioning of the star rating on the product tile.
What can be modified?#
- Override the text and select the status of the stars.
Our workflow in Sketch#
- Use the "Overrides"-function to change the number of stars.
References#
[T16 | Global] Rating Stars
Change log#
1.4.0 Mail - 2022-03-21#
Fixed#
Doc
: "Rating" | Jumpmark to what can be modified
1.3.0 Mail - 2022-02-21#
Highlights#
Sketch
,Doc
: "Rating" | Component is updated with the latest color definitions
1.1.0 Mail - 2021-07-22#
Changed#
Doc
: "Rating" | Cleaned up the documentation for the right structure and sentence case
1.0.0 Mail - 2021-06-24#
Highlights#
Sketch
: "Rating" | New layer-styles, text-styles and color-variables settings
Changed#
Doc
: "Rating" | Updated documentationSketch
: "Rating" | Renamed symbol name from "star" to "rating"