Customizing Tooltip

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-tooltip-padding-yNumber($kendo-padding-md-y * .75)3px
Description
The vertical padding of the Tooltip.
$kendo-tooltip-padding-xNumberk-math-div( $kendo-padding-md-x, 2 )8px
Description
The horizontal padding of the Tooltip.
$kendo-tooltip-border-widthNumber0px0px
Description
The width of the border around the Tooltip.
$kendo-tooltip-border-radiusNumber$kendo-border-radius-md4px
Description
The border radius of the Tooltip.
$kendo-tooltip-font-familyList$kendo-font-familyRoboto, "Helvetica Neue", sans-serif
Description
The font family of the Tooltip.
$kendo-tooltip-font-sizeNumber$kendo-font-size-sm12px
Description
The font size of the Tooltip.
$kendo-tooltip-line-heightNumberk-math-div( 20, 14 )1.4285714286
Description
The line height of the Tooltip.
$kendo-tooltip-title-font-sizeNumber($kendo-tooltip-font-size * 1.25)15px
Description
The font size of the Tooltip title.
$kendo-tooltip-title-line-heightNumber11
Description
The line height of the Tooltip title.
$kendo-tooltip-callout-sizeNumber6px6px
Description
The size of the Tooltip callout.
$kendo-tooltip-bgColormaterial-color( gray, 700, .9 )rgba(97, 97, 97, 0.9)
Description
The default background of the Tooltip.
$kendo-tooltip-textColorget-base-contrast( gray, 700 )#ffffff
Description
The default text color of the Tooltip.
$kendo-tooltip-borderColor$kendo-tooltip-bgrgba(97, 97, 97, 0.9)
Description
The default border color of the Tooltip.
$kendo-tooltip-shadowString$box-shadow-depth-2var(--kendo-elevation-2, 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 3px 1px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14))
Description
The box-shadow of the Tooltip.
$kendo-tooltip-theme-colorsMap$kendo-theme-colors("primary": #3f51b5, "secondary": #e51a5f, "tertiary": #00695c, "info": #0058e9, "success": #37b400, "warning": #ffc000, "error": #f31700, "dark": #424242, "light": #f5f5f5, "inverse": #424242)
Description
The theme colors map for the Tooltip.
$kendo-tooltip-themeMaptooltip-theme( $kendo-tooltip-theme-colors )("inverse": (color: white, background-color: #424242, border: #424242), "light": (color: black, background-color: #f5f5f5, border: #f5f5f5), "dark": (color: white, background-color: #424242, border: #424242), "error": (color: black, background-color: #f31700, border: #f31700), "warning": (color: black, background-color: #ffc000, border: #ffc000), "success": (color: black, background-color: #37b400, border: #37b400), "info": (color: white, background-color: #0058e9, border: #0058e9), "tertiary": (color: white, background-color: #00695c, border: #00695c), "secondary": (color: white, background-color: #e51a5f, border: #e51a5f), "primary": (color: white, background-color: #3f51b5, border: #3f51b5))
Description
The generated theme colors map for the Tooltip.

In this article

Not finding the help you need?