Customizing Tooltip

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-tooltip-padding-yNumber$tooltip-padding-y0.25rem
Description
The vertical padding of the Tooltip.
$kendo-tooltip-padding-xNumber$tooltip-padding-x0.5rem
Description
The horizontal padding of the Tooltip.
$kendo-tooltip-border-widthNumber0px0px
Description
The width of the border around the Tooltip.
$kendo-tooltip-border-radiusNumber$tooltip-border-radius0.375rem
Description
The border radius of the Tooltip.
$kendo-tooltip-font-familyList$kendo-font-familysystem-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
Description
The font family of the Tooltip.
$kendo-tooltip-font-sizeNumber$kendo-font-size-sm0.875rem
Description
The font size of the Tooltip.
$kendo-tooltip-line-heightNumber$kendo-line-height-md1.5
Description
The line height of the Tooltip.
$kendo-tooltip-title-font-sizeNumber($kendo-tooltip-font-size * 1.25)1.09375rem
Description
The font size of the Tooltip title.
$kendo-tooltip-title-line-heightNumber11
Description
The line height of the Tooltip title.
$kendo-tooltip-callout-sizeNumber$tooltip-arrow-height0.4rem
Description
The size of the Tooltip callout.
$kendo-tooltip-bgColorif($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, $kendo-color-white, $kendo-color-black ))#000000
Description
The default background of the Tooltip.
$kendo-tooltip-textColorif($kendo-enable-color-system, k-color( app-surface ), k-contrast-color( $kendo-tooltip-bg ))white
Description
The default text color of the Tooltip.
$kendo-tooltip-borderColor$kendo-tooltip-bg#000000
Description
The default border color of the Tooltip.
$kendo-tooltip-shadowStringk-elevation(2)var(--kendo-elevation-2, 0px 2px 7px rgba(0, 0, 0, 0.075))
Description
The box-shadow of the Tooltip.
$kendo-tooltip-theme-colorsMap$kendo-theme-colors("primary": #0d6efd, "secondary": #6c757d, "tertiary": #6f42c1, "info": #0dcaf0, "success": #198754, "warning": #ffc107, "error": #dc3545, "dark": #212529, "light": #f8f9fa, "inverse": #212529)
Description
The theme colors map for the Tooltip.
$kendo-tooltip-themeMaptooltip-theme( $kendo-tooltip-theme-colors )("inverse": (color: white, background-color: #212529, border: #212529), "light": (color: black, background-color: #f8f9fa, border: #f8f9fa), "dark": (color: white, background-color: #212529, border: #212529), "error": (color: white, background-color: #dc3545, border: #dc3545), "warning": (color: black, background-color: #ffc107, border: #ffc107), "success": (color: white, background-color: #198754, border: #198754), "info": (color: white, background-color: #0dcaf0, border: #0dcaf0), "tertiary": (color: white, background-color: #6f42c1, border: #6f42c1), "secondary": (color: white, background-color: #6c757d, border: #6c757d), "primary": (color: white, background-color: #0d6efd, border: #0d6efd))
Description
The generated theme colors map for the Tooltip.

In this article

Not finding the help you need?