New to Kendo UI for Angular? Start a free 30-day trial
Customizing Menu
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-menu-border-width | String | k-spacing(0) | var(--kendo-spacing-0, 0px) |
Description
Width of the menu border. | |||
$kendo-menu-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
$kendo-menu-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
$kendo-menu-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
Line heights used along with $kendo-font-size. | |||
$kendo-menu-item-padding-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
Padding of menu root items. | |||
$kendo-menu-item-spacing | String | k-spacing(0) | var(--kendo-spacing-0, 0px) |
Description
Spacing between menu root items. | |||
$kendo-menu-item-icon-spacing | String | var( --kendo-icon-spacing, .5rem ) | var(--kendo-icon-spacing, 0.5rem) |
Description
Spacing between menu root items text and icons. | |||
$kendo-menu-separator-margin | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
Spacing between menu separator and items. | |||
$kendo-menu-separator-width | Number | 1px | 1px |
Description
Separator width | |||
$kendo-menu-item-focus-outline-offset | Calculation | calc( #{k-spacing(0.5)} * -1 ) | calc(var(--kendo-spacing-0\.5, 0.125rem) * -1) |
Description
The base outline of focused menu item. | |||
$kendo-menu-text | String | var( --kendo-body-text, inherit ) | var(--kendo-body-text, inherit) |
Description
The text color of the menu. | |||
$kendo-menu-bg | Color | transparent | transparent |
Description
The background color of the menu. | |||
$kendo-menu-border | String | initial | initial |
Description
The border color of the menu. | |||
$kendo-menu-shadow | String | none | none |
Description
The shadow of the menu. | |||
$kendo-menu-item-text | String | $kendo-menu-text | var(--kendo-body-text, inherit) |
Description
The text color of menu items. | |||
$kendo-menu-item-bg | Color | transparent | transparent |
Description
The background color of menu items. | |||
$kendo-menu-item-hover-text | String | var( --kendo-hover-text, inherit ) | var(--kendo-hover-text, inherit) |
Description
The text color of hover menu items. | |||
$kendo-menu-item-hover-bg | String | var( --kendo-hover-bg, initial ) | var(--kendo-hover-bg, initial) |
Description
The background color of hover menu items. | |||
$kendo-menu-item-focus-text | String | $kendo-menu-item-text | var(--kendo-body-text, inherit) |
Description
The text color of focused menu items. | |||
$kendo-menu-item-focus-bg | Color | $kendo-menu-item-bg | transparent |
Description
The background color of focused menu items. | |||
$kendo-menu-item-focus-outline | String | var( --kendo-focus-outline, none ) | var(--kendo-focus-outline, none) |
Description
The outline of focused menu items. | |||
$kendo-menu-item-expanded-text | String | $kendo-menu-item-hover-text | var(--kendo-hover-text, inherit) |
Description
The text color of expanded menu items. | |||
$kendo-menu-item-expanded-bg | String | var( --kendo-selected-bg, initial ) | var(--kendo-selected-bg, initial) |
Description
The background color of expanded menu items. | |||
$kendo-menu-item-disabled-text | String | var( --kendo-disabled-text, initial ) | var(--kendo-disabled-text, initial) |
Description
The text color of disabled menu items. | |||
$kendo-menu-item-disabled-bg | Color | $kendo-menu-item-bg | transparent |
Description
The background color of disabled menu items. | |||
$kendo-menu-popup-padding-x | String | $kendo-popup-padding-x | var(--kendo-spacing-0, 0px) |
Description
Horizontal padding of the menu popup. | |||
$kendo-menu-popup-padding-y | String | $kendo-popup-padding-y | var(--kendo-spacing-0, 0px) |
Description
Vertical padding of the menu popup. | |||
$kendo-menu-popup-border-width | Number | $kendo-popup-border-width | 0 |
Description
Width of the border around the menu popup. | |||
$kendo-menu-popup-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
Font sizes of the menu popup. | |||
$kendo-menu-popup-line-height | String | var( --kendo-line-height, 30px ) | var(--kendo-line-height, 30px) |
Description
Line heights used along with $kendo-font-size. | |||
$kendo-menu-popup-bg | String | var( --kendo-component-bg, initial ) | var(--kendo-component-bg, initial) |
Description
The background of the menu popup. | |||
$kendo-menu-popup-border | String | initial | initial |
Description
The border color of the menu popup. | |||
$kendo-menu-popup-shadow | String | var( --kendo-box-shadow-depth-6, none ) | var(--kendo-box-shadow-depth-6, none) |
Description
The shadow of the menu popup. | |||
$kendo-menu-popup-item-padding-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
Horizontal padding of the menu item in popup. | |||
$kendo-menu-popup-sm-item-padding-y | String | $kendo-list-sm-item-padding-y | var(--kendo-spacing-1\.5, 0.375rem) |
Description
Vertical padding of the menu item in popup. | |||
$kendo-menu-popup-sm-item-padding-end | Calculation | calc( calc( #{$kendo-menu-popup-sm-item-padding-x} * 2 ) + var( --kendo-icon-size, 1rem ) ) | calc(var(--kendo-spacing-2, 0.5rem) * 2 + var(--kendo-icon-size, 1rem)) |
Description
The end padding of the menu item in popup. | |||
$kendo-menu-popup-sm-item-icon-margin-start | String | k-spacing(0) | var(--kendo-spacing-0, 0px) |
Description
The start margin of the menu item expand icon. | |||
$kendo-menu-popup-sm-item-icon-margin-end | Calculation | calc( -1 * (var( --kendo-icon-size, 1rem ) + #{$kendo-menu-popup-sm-item-padding-x}) ) | calc(-1 * (var(--kendo-icon-size, 1rem) + var(--kendo-spacing-2, 0.5rem))) |
Description
The end margin of the menu item expand icon. | |||
$kendo-menu-popup-focus-outline-offset | Calculation | $kendo-menu-item-focus-outline-offset | calc(var(--kendo-spacing-0\.5, 0.125rem) * -1) |
Description
The base shadow of focused menu item in popup. | |||
$kendo-menu-popup-item-spacing | String | k-spacing(0) | var(--kendo-spacing-0, 0px) |
Description
The spacing between the menu items in popup. | |||
$kendo-menu-sizes | Map | (
sm: (
group-font-size: $kendo-menu-popup-sm-font-size,
group-line-height: $kendo-menu-popup-sm-line-height,
link-padding-x: $kendo-menu-popup-sm-item-padding-x,
link-padding-y: $kendo-menu-popup-sm-item-padding-y,
link-padding-inline-end: $kendo-menu-popup-sm-item-padding-end,
arrow-margin-inline-start: $kendo-menu-popup-sm-item-icon-margin-start,
arrow-margin-inline-end: $kendo-menu-popup-sm-item-icon-margin-end,
),
md: (
group-font-size: $kendo-menu-popup-md-font-size,
group-line-height: $kendo-menu-popup-md-line-height,
link-padding-x: $kendo-menu-popup-md-item-padding-x,
link-padding-y: $kendo-menu-popup-md-item-padding-y,
link-padding-inline-end: $kendo-menu-popup-md-item-padding-end,
arrow-margin-inline-start: $kendo-menu-popup-item-icon-md-margin-start,
arrow-margin-inline-end: $kendo-menu-popup-item-icon-md-margin-end,
),
lg: (
group-font-size: $kendo-menu-popup-lg-font-size,
group-line-height: $kendo-menu-popup-lg-line-height,
link-padding-x: $kendo-menu-popup-lg-item-padding-x,
link-padding-y: $kendo-menu-popup-lg-item-padding-y,
link-padding-inline-end: $kendo-menu-popup-lg-item-padding-end,
arrow-margin-inline-start: $kendo-menu-popup-lg-item-icon-margin-start,
arrow-margin-inline-end: $kendo-menu-popup-lg-item-icon-margin-end
)
) |
|
Description
Sizes map for the menu. | |||
$kendo-menu-popup-item-text | String | $kendo-list-item-text | var(--kendo-color-on-app-surface, #323130) |
Description
The text color of the menu item in popup. | |||
$kendo-menu-popup-item-bg | String | $kendo-list-item-bg | var(--kendo-color-app-surface, #ffffff) |
Description
The background of the menu item in popup. | |||
$kendo-menu-popup-item-hover-text | String | $kendo-list-item-hover-text | var(--kendo-color-on-app-surface, #323130) |
Description
The text color of hovered menu item in popup. | |||
$kendo-menu-popup-item-hover-bg | String | $kendo-list-item-hover-bg | var(--kendo-color-base-hover, #f3f2f1) |
Description
The background of hovered menu item in popup. | |||
$kendo-menu-popup-item-focus-text | String | $kendo-menu-item-text | var(--kendo-body-text, inherit) |
Description
The text color of focused menu items. | |||
$kendo-menu-popup-item-focus-bg | Color | $kendo-menu-item-bg | transparent |
Description
The background color of focused menu items. | |||
$kendo-menu-popup-item-focus-outline | String | if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130)) | var(--kendo-color-base-emphasis, #605e5c) |
Description
The outline of focused menu items. | |||
$kendo-menu-popup-item-expanded-text | String | $kendo-list-item-selected-text | var(--kendo-color-on-app-surface, #323130) |
Description
The text color of expanded menu item in popup. | |||
$kendo-menu-popup-item-expanded-bg | String | $kendo-list-item-selected-bg | var(--kendo-color-base-active, #edebe9) |
Description
The background of expanded menu item in popup. | |||
$kendo-menu-popup-item-disabled-text | String | $kendo-list-item-disabled-text | color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 46%, transparent) |
Description
The text color of disabled menu item in popup. | |||
$kendo-menu-popup-item-disabled-bg | String | $kendo-list-item-disabled-bg | var(--kendo-color-app-surface, #ffffff) |
Description
The background of disabled menu item in popup. | |||
$kendo-menu-scroll-button-bg | String | var( --kendo-component-bg, $kendo-component-bg ) | var(--kendo-component-bg, var(--kendo-color-surface-alt, #ffffff)) |
Description
The background color of scroll menu buttons. | |||
$kendo-menu-scroll-button-border | String | var( --kendo-component-border, $kendo-component-border ) | var(--kendo-component-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)) |
Description
The border color of scroll menu buttons. | |||
$kendo-menu-scroll-button-hover-bg | Null | null | null |
Description
The background color of hover scroll menu buttons. | |||
$kendo-menu-scroll-button-hover-border | Null | null | null |
Description
The border color of scroll hover menu buttons. | |||
$kendo-menu-icon-color | String | if($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 )) | var(--kendo-color-primary, #0078d4) |
Description
The color of menu items icon. |