New to Kendo UI for AngularStart a free 30-day trial

Customizing FloatingLabel

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-floating-label-scaleNumber11
Description
The transformation scale of the Floating Label.
$kendo-floating-label-font-sizeString$kendo-input-font-sizevar(--kendo-font-size-lg, inherit)
Description
The font size of the Floating Label.
$kendo-floating-label-max-widthNumber90%90%
Description
The maximum width of the Floating Label.
$kendo-floating-label-line-heightNumber$kendo-input-line-height1.25
Description
The line height of the Floating Label.
$kendo-floating-label-heightCalculationcalc( #{$kendo-floating-label-line-height} * #{$kendo-floating-label-font-size} )calc(1.25 * var(--kendo-font-size-lg, inherit))
Description
The height of the Floating Label.
$kendo-floating-label-offset-xCalculationcalc( #{$kendo-input-padding-x} + #{$kendo-input-border-width} )calc(var(--kendo-spacing-4, 1rem) + 1px)
Description
The horizontal offset of the Floating Label.
$kendo-floating-label-offset-yCalculationcalc( #{$kendo-floating-label-height} + #{$kendo-input-border-width} + #{$kendo-input-padding-y} )calc(calc(1.25 * var(--kendo-font-size-lg, inherit)) + 1px + var(--kendo-spacing-2, 0.5rem))
Description
The vertical offset of the Floating Label.
$kendo-floating-label-focus-scaleNumber.750.75
Description
The transformation scale of the focused Floating Label.
$kendo-floating-label-focus-offset-xNumber0px0px
Description
The horizontal offset of the focused Floating Label.
$kendo-floating-label-focus-offset-yNumber0px0px
Description
The vertical offset of the focused Floating Label.
$kendo-floating-label-transitionList.15s cubic-bezier( .4, 0, .2, 1 )0.15s cubic-bezier(0.4, 0, 0.2, 1)
Description
The transition of the Floating Label.
$kendo-floating-label-bgNullnullnull
Description
The background color of the Floating Label.
$kendo-floating-label-textString$kendo-subtle-textvar(--kendo-color-subtle, #757575)
Description
The text color of the Floating Label.
$kendo-floating-label-focus-bgNullnullnull
Description
The background color of the focused Floating Label.
$kendo-floating-label-focus-textString$kendo-color-primaryvar(--kendo-color-primary, #3f51b5)
Description
The text color of the focused Floating Label.
In this article
VariablesSuggested Links
Not finding the help you need?
Contact Support