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

Customizing Button

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-actions-button-spacingmap.get( $kendo-spacing, 2 )
Description
Spacing between the action buttons.
$kendo-button-border-width1px
Description
The width of the border around the Button.
$kendo-button-sm-padding-xmap.get( $kendo-spacing, 5 )
Description
The horizontal padding of the small Button.
$kendo-button-md-padding-xmap.get( $kendo-spacing, 5 )
Description
The horizontal padding of the medium Button.
$kendo-button-lg-padding-xmap.get( $kendo-spacing, 5 )
Description
The horizontal padding of the large Button.
$kendo-button-sm-padding-ymap.get( $kendo-spacing, 1 )
Description
The vertical padding of the small Button.
$kendo-button-md-padding-ymap.get( $kendo-spacing, 1.5 )
Description
The vertical padding of the medium Button.
$kendo-button-lg-padding-ymap.get( $kendo-spacing, 2 )
Description
The vertical padding of the large Button.
$kendo-button-sm-font-sizevar( --kendo-font-size, inherit )
Description
The font size of the small Button.
$kendo-button-md-font-sizevar( --kendo-font-size, inherit )
Description
The font size of the medium Button.
$kendo-button-lg-font-sizevar( --kendo-font-size, inherit )
Description
The font size of the large Button.
$kendo-button-sm-line-heightvar( --kendo-line-height, normal )
Description
The line height used along with the $kendo-font-size variable of the small Button.
$kendo-button-md-line-heightvar( --kendo-line-height, normal )
Description
The line height used along with the $kendo-font-size variable of the medium Button.
$kendo-button-lg-line-heightvar( --kendo-line-height, normal )
Description
The line height used along with the $kendo-font-size variable of the large Button.
$kendo-button-font-familyvar( --kendo-font-family, inherit )
Description
The font family of the Button.
$kendo-button-font-weightvar( --kendo-font-weight-bold, normal )
Description
The font weight of the Button.
$kendo-button-calc-sizecalc( ( #{$kendo-button-md-line-height} * 1em ) + ( #{$kendo-button-md-padding-y} * 2 ) + ( #{$kendo-button-border-width} * 2 ) )
Description
The calculated height of the Button.
$kendo-button-inner-calc-sizecalc( ( #{$kendo-button-md-line-height} * 1em ) + ( #{$kendo-button-md-padding-y} * 2 ) )
Description
The calculated inner height of the Button excluding the border width.
$kendo-button-sizes( sm: ( padding-x: $kendo-button-sm-padding-x, padding-y: $kendo-button-sm-padding-y, font-size: $kendo-button-sm-font-size, line-height: $kendo-button-sm-line-height ), md: ( padding-x: $kendo-button-md-padding-x, padding-y: $kendo-button-md-padding-y, font-size: $kendo-button-md-font-size, line-height: $kendo-button-md-line-height ), lg: ( padding-x: $kendo-button-lg-padding-x, padding-y: $kendo-button-lg-padding-y, font-size: $kendo-button-lg-font-size, line-height: $kendo-button-lg-line-height ) )
Description
The sizes map for the Button.
$kendo-button-spacingmap.get( $kendo-spacing, 2 )
Description
The content spacing of the Button.
$kendo-button-focus-offsetmap.get( $kendo-spacing, 0.5 )
Description
The offset of the focused Button.
$kendo-button-focus-outline-width1px
Description
The Outline width of the focused Button.
$kendo-button-focus-outline-stylesolid
Description
The outline style of the focused Button.
$kendo-button-flat-focus-offset1px
Description
The offset of the flat focused Button.
$kendo-button-flat-focus-outline-widthmap.get( $kendo-spacing, 0.5 )
Description
The outline width of the flat focused Button.
$kendo-button-link-focus-offset0
Description
The offset of the link focused Button.
$kendo-button-link-focus-outline-width1px
Description
The outline width of the flat focused Button.
$kendo-button-theme-colors()
Description
The theme colors map for the Button.

In this article

Not finding the help you need?