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

Customizing Expander

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-expander-margin-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical spacing of the ExpansionPanel.
$kendo-expander-border-widthNumber1px1px
Description
The width of the border around the ExpansionPanel.
$kendo-expander-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the ExpansionPanel.
$kendo-expander-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the ExpansionPanel.
$kendo-expander-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The hine height of the ExpansionPanel.
$kendo-expander-textStringvar( --kendo-component-text, initial )var(--kendo-component-text, initial)
Description
The text color of the ExpansionPanel.
$kendo-expander-bgStringif($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 ))var(--kendo-color-surface, #faf9f8)
Description
The background color of the ExpansionPanel.
$kendo-expander-borderStringvar( --kendo-component-border, initial )var(--kendo-component-border, initial)
Description
The border color of the ExpansionPanel.
$kendo-expander-shadowListinset 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 ))inset 0 0 0 2px color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)
Description
The box shadow of the ExpansionPanel.
$kendo-expander-expanded-bgStringvar( --kendo-component-bg, initial )var(--kendo-component-bg, initial)
Description
The background color of the expanded ExpansionPanel.
$kendo-expander-disabled-textStringvar( --kendo-disabled-text, initial )var(--kendo-disabled-text, initial)
Description
The text color of the disabled ExpansionPanel.
$kendo-expander-disabled-bgStringvar( --kendo-disabled-bg, initial )var(--kendo-disabled-bg, initial)
Description
The background color of the disabled ExpansionPanel.
$kendo-expander-focus-offsetNumber1px1px
Description
The offset of the focused ExpansionPanel.
$kendo-expander-focus-outline-widthNumber1px1px
Description
The outline width of the focused ExpansionPanel.
$kendo-expander-focus-outline-styleStringsolidsolid
Description
The outline style of the focused ExpansionPanel.
$kendo-expander-focus-outlineStringif($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130))var(--kendo-color-base-emphasis, #605e5c)
Description
The outline color of the focused ExpansionPanel.
$kendo-expander-focus-bgStringvar( --kendo-component-bg, initial )var(--kendo-component-bg, initial)
Description
The background color of the focused ExpansionPanel.
$kendo-expander-focus-shadowListinset 0px 0px 0px 2px if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130))inset 0px 0px 0px 2px var(--kendo-color-base-emphasis, #605e5c)
Description
The box shadow of the focused ExpansionPanel.
$kendo-expander-header-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the ExpansionPanel header.
$kendo-expander-header-padding-yStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The vertical padding of the ExpansionPanel header.
$kendo-expander-header-textStringif($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 ExpansionPanel header.
$kendo-expander-header-bgStringinheritinherit
Description
The background color of the ExpansionPanel header.
$kendo-expander-header-hover-bgStringif($kendo-enable-color-system, k-color( base-hover ), k-get-theme-color-var( neutral-20 ))var(--kendo-color-base-hover, #f3f2f1)
Description
The background color of the hovered ExpansionPanel header.
$kendo-expander-title-textStringif($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 ExpansionPanel title.
$kendo-expander-header-sub-title-textStringvar( --kendo-subtle-text, initial )var(--kendo-subtle-text, initial)
Description
The text color of the ExpansionPanel sub-title.
$kendo-expander-indicator-margin-xStringk-spacing(2.5)var(--kendo-spacing-2\.5, 0.625rem)
Description
The horizontal margin of the ExpansionPanel indicator.
$kendo-expander-indicator-textStringvar( --kendo-expander-text, #{$kendo-expander-text} )var(--kendo-expander-text, var(--kendo-component-text, initial))
Description
The text color of the ExpansionPanel indicator.
$kendo-expander-content-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the ExpansionPanel content.
$kendo-expander-content-padding-yStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The vertical padding of the ExpansionPanel content.

In this article

Not finding the help you need?