Customizing Rating
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-rating-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Rating. | |||
$kendo-rating-font-size | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the Rating. | |||
$kendo-rating-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the Rating. | |||
$kendo-rating-spacing | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The content spacing of the Rating. | |||
$kendo-rating-item-padding-x | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The horizontal padding of the Rating item. | |||
$kendo-rating-item-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Rating item. | |||
$kendo-rating-item-text | String | if($kendo-enable-color-system, k-color( subtle ), k-get-theme-color-var( neutral-130 )) | var(--kendo-color-subtle, #605e5c) |
Description
The text color of the Rating item. | |||
$kendo-rating-item-hover-text | String | if($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 )) | var(--kendo-color-primary, #0078d4) |
Description
The text color of the hovered Rating item. | |||
$kendo-rating-item-focus-text | String | $kendo-rating-item-text | var(--kendo-color-subtle, #605e5c) |
Description
The text color of the focused Rating item. | |||
$kendo-rating-item-focus-outline-width | Number | 1px | 1px |
Description
The outline width of the focused Rating item. | |||
$kendo-rating-item-focus-outline-style | String | solid | solid |
Description
The outline style of the focused Rating item. | |||
$kendo-rating-item-focus-outline | String | currentColor | currentColor |
Description
The outline color of the focused Rating item. | |||
$kendo-rating-item-selected-text | String | if($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 )) | var(--kendo-color-on-app-surface, #323130) |
Description
The text color of the selected Rating item. | |||
$kendo-rating-item-selected-hover-text | String | if($kendo-enable-color-system, k-color( primary-active ), k-get-theme-color-var( primary-120 )) | var(--kendo-color-primary-active, #005a9e) |
Description
The text color of the selected and hovered Rating item. |