New to Kendo UI for Angular? Start a free 30-day trial

Customizing Rating

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-rating-font-familyvar( --kendo-font-family, inherit )
Description
Font family of the rating.
$kendo-rating-font-sizevar( --kendo-font-size-sm, inherit )
Description
Font size of the rating.
$kendo-rating-line-heightvar( --kendo-line-height, normal )
Description
Line height of the rating.
$kendo-rating-spacingmap.get( $kendo-spacing, 1 )
Description
Content spacing of the rating.
$kendo-rating-item-padding-xmap.get( $kendo-spacing, 0.5 )
Description
Horizontal padding of the rating item.
$kendo-rating-item-padding-ymap.get( $kendo-spacing, 2 )
Description
Vertical padding of the rating item.
$kendo-rating-item-textk-get-theme-color-var( neutral-130 )
Description
Normal color of the rating item.
$kendo-rating-item-hover-textk-get-theme-color-var( primary-100 )
Description
Hover color of the rating item.
$kendo-rating-item-focus-text$kendo-rating-item-text
Description
Focus color of the rating item.
$kendo-rating-item-focus-outline-width1px
Description
Outline width of the focused rating item.
$kendo-rating-item-focus-outline-stylesolid
Description
Outline style of the focused rating item.
$kendo-rating-item-focus-outlinecurrentColor
Description
Outline color of the focused rating item.
$kendo-rating-item-selected-textk-get-theme-color-var( neutral-160 )
Description
Selected color of the rating item.
$kendo-rating-item-selected-hover-textk-get-theme-color-var( primary-120 )
Description
Selected hover color of the rating item.

In this article

Not finding the help you need?