Rating

The Rating component displays a score within a defined range and provides an intuitive way for users to give feedback.

Sass Variables

The Telerik and Kendo UI Rating enables you to configure and customize its appearance through the available Sass variables.

VariableDefault ValueComputed ValueValue
kendo-rating-font-family$kendo-font-familyinheritDefault: $kendo-font-familyComputed: inherit
Description: The font family of the Rating.
kendo-rating-font-size$kendo-font-size-md14pxDefault: $kendo-font-size-mdComputed: 14px
Description: The font size of the Rating.
kendo-rating-line-height$kendo-line-height-md1.4285714286Default: $kendo-line-height-mdComputed: 1.4285714286
Description: The line height of the Rating.
kendo-rating-container-margin-x$kendo-padding-sm-x4pxDefault: $kendo-padding-sm-xComputed: 4px
Description: The horizontal margin of the Rating container.
kendo-rating-item-padding-x$kendo-padding-sm-x4pxDefault: $kendo-padding-sm-xComputed: 4px
Description: The horizontal padding of the Rating item.
kendo-rating-item-padding-y$kendo-padding-md-y4pxDefault: $kendo-padding-md-yComputed: 4px
Description: The vertical padding of the Rating item.
kendo-rating-label-margin-x$kendo-padding-md-x8pxDefault: $kendo-padding-md-xComputed: 8px
Description: The horizontal margin of the Rating label.
kendo-rating-label-margin-y$kendo-padding-md-y4pxDefault: $kendo-padding-md-yComputed: 4px
Description: The vertical margin of the Rating label.
kendo-rating-label-line-height$kendo-line-height-lg1.5Default: $kendo-line-height-lgComputed: 1.5
Description: The line height of the Rating label.
kendo-rating-icon-size($kendo-icon-size * 1.5)24pxDefault: ($kendo-icon-size * 1.5)Computed: 24px
Description: The size of the Rating icon.
kendo-rating-icon-text$kendo-component-text #424242Default: $kendo-component-textComputed: #424242
Description: The text color of the Rating icon.
kendo-rating-icon-selected-text$kendo-selected-bg #ff6358Default: $kendo-selected-bgComputed: #ff6358
Description: The text color of the selected Rating icon.
kendo-rating-icon-hover-text$kendo-selected-bg #ff6358Default: $kendo-selected-bgComputed: #ff6358
Description: The text color of the hovered Rating icon.
kendo-rating-icon-focus-text$kendo-selected-bg #ff6358Default: $kendo-selected-bgComputed: #ff6358
Description: The text color of the focused Rating icon.
kendo-rating-icon-focus-shadowk-elevation(1)var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12))Default: k-elevation(1)Computed: var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12))
Description: The shadow of the focused Rating icon.
kendo-rating-icon-focus-selected-shadowk-elevation(1)var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12))Default: k-elevation(1)Computed: var(--kendo-elevation-1, 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12))
Description: The shadow of the focused and selected Rating icon.