Intro
A rating control is used to indicate an average rating for an object. It also allows for users to set their own rating on a numeric scale from 1 (lowest) to 5 (highest).
Rating in a compact layout (left) and in a medium layout (right)
Anatomy
A. Leading Text (Display Only)
The counter or text supplements the rating of the display-only rating control variant. It can be used to display the number of ratings, the exact rating value, and more.
B. Icon
The icons represent the average object rating value through several states: on, off, and half. The states of these icons depict a rating from a scale of one to five. Half stars can be used for read-only state. The star icon is shown by default, and custom icons are supported to provide flexibility.
B. Trailing Text
The counter or text supplements the rating. It can be used to display the number of ratings, the exact rating value, and more. For an interactive rating control, the trailing text can be treated as optional if it is in a form cell or object cell container which conveys the value elsewhere.
While both leading text and trailing text are optional, it is recommended to use at least one label with the rating control component for accessibility.
Rating control anatomy
Behavior and Interaction
For scenarios where users can give a rating, the larger interactive type of the rating control should be used. Users can set their rating by either tapping the stars individually or by holding and dragging their finger horizontally across the stars to choose the desired rating.
Tap interaction for the rating control
Variations
Read-Only Rating Control
Large read-only rating control (top), small read-only rating control (middle), and small accented read-only rating control with a custom icon (bottom)
Interactive Rating Control
Interactive rating control (top), disabled interactive rating control (middle), and custom icon interactive rating control (bottom)
Resources
Development: Rating Control, FioriRating
SAP Fiori for iOS: Rating Control
SAP Fiori for Web: Rating Indicator