Customizing Tooltip
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-tooltip-padding-y | String | $kendo-padding-md-y | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the Tooltip. | |||
$kendo-tooltip-padding-x | String | $kendo-padding-md-x | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Tooltip. | |||
$kendo-tooltip-border-width | Number | 0px | 0px |
Description
The width of the border around the Tooltip. | |||
$kendo-tooltip-border-radius | String | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) |
Description
The border radius of the Tooltip. | |||
$kendo-tooltip-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Tooltip. | |||
$kendo-tooltip-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Tooltip. | |||
$kendo-tooltip-line-height | String | var( --kendo-line-height-sm, normal ) | var(--kendo-line-height-sm, normal) |
Description
The line height of the Tooltip. | |||
$kendo-tooltip-title-font-size | Calculation | calc( ( var( --kendo-font-size, .875rem ) * 1.25 ) ) | calc(var(--kendo-font-size, 0.875rem) * 1.25) |
Description
The font size of the Tooltip title. | |||
$kendo-tooltip-title-line-height | String | var( --kendo-line-height-xs, normal ) | var(--kendo-line-height-xs, normal) |
Description
The line height of the Tooltip title. | |||
$kendo-tooltip-callout-size | Number | 6px | 6px |
Description
The size of the Tooltip callout. | |||
$kendo-tooltip-bg | String | if($kendo-enable-color-system, k-color( on-app-surface ), rgba( k-contrast-legacy( $kendo-body-bg ), .75 )) | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The default background of the Tooltip. | |||
$kendo-tooltip-text | String | if($kendo-enable-color-system, k-color( app-surface ), k-contrast-legacy( $kendo-tooltip-bg )) | var(--kendo-color-app-surface, #ffffff) |
Description
The default text color of the Tooltip. | |||
$kendo-tooltip-border | String | $kendo-tooltip-bg | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The default border color of the Tooltip. | |||
$kendo-tooltip-shadow | String | k-elevation(2) | var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12)) |
Description
The box-shadow of the Tooltip. | |||
$kendo-tooltip-theme-colors | Map | $kendo-theme-colors |
|
Description
The theme colors map for the Tooltip. | |||
$kendo-tooltip-theme | Map | tooltip-theme( $kendo-tooltip-theme-colors ) |
|
Description
The generated theme colors map for the Tooltip. |