Button Small
This component is deprecated
Mixins
button-small-default
@mixin button-small-default() { ... }
@mixin button-small-default() { @include common.button-common; padding-left: settings.$spacing-vertical; padding-right: settings.$spacing-vertical; height: settings.$height; background-color: settings.$default-background; color: settings.$default-text-color; transition: background-color 100ms ease-out; & + & { @include kib-core-spacing(margin, small, start); } &::after { border-color: settings.$default-background; } &:focus { background-color: settings.$default-background-focus; outline: 0; &::after { opacity: 1; } } @media (hover: hover) { &:hover { background-color: settings.$default-background-hover; color: settings.$default-text-color; text-decoration: none; } } &:active { background-color: settings.$default-background-active; } &[disabled], &--disabled { @include common.button-disabled-common; } /* Hides outline when hovering over component while focused */ &:hover:focus { &::after { opacity: 0; } } }
Description
Primary variant styles
Parameters
None.
Requires
- [variable]
spacing-vertical
- [variable]
height
- [variable]
default-background
- [variable]
default-text-color
- [variable]
default-background-focus
- [variable]
default-background-hover
- [variable]
default-background-active
Author
CDS
button-small-loading
@mixin button-small-loading() { ... }
@mixin button-small-loading() { &, &:focus, &:hover { background-color: settings.$default-background-active; } }
Description
Primary variant loading styles
Parameters
None.
Requires
- [variable]
default-background-active
Author
CDS
button-small-secondary
@mixin button-small-secondary() { ... }
@mixin button-small-secondary() { background-color: settings.$secondary-background; box-shadow: inset 0 0 0 settings.$secondary-border-width settings.$secondary-border-color; color: settings.$secondary-text-color; &:focus { background-color: transparent; } &:hover { background-color: settings.$secondary-background-hover; color: settings.$secondary-text-color; } &:active { background-color: settings.$secondary-background-active; } }
Description
Secondary variant styles
Parameters
None.
Requires
- [variable]
secondary-background
- [variable]
secondary-border-width
- [variable]
secondary-border-color
- [variable]
secondary-text-color
- [variable]
secondary-background-hover
- [variable]
secondary-background-active
Author
CDS
button-small-secondary-loading
@mixin button-small-secondary-loading() { ... }
@mixin button-small-secondary-loading() { &, &:focus, &:hover { background-color: settings.$secondary-background-active; } }
Description
Secondary variant loading styles
Parameters
None.
Requires
- [variable]
secondary-background-active
Author
CDS
button-small-tertiary
@mixin button-small-tertiary() { ... }
@mixin button-small-tertiary() { background-color: settings.$tertiary-background; color: settings.$tertiary-text-color; &:focus { background-color: transparent; } @media (hover: hover) { &:hover { background-color: settings.$tertiary-background-hover; color: settings.$tertiary-text-color; } } &:active { background-color: settings.$tertiary-background-active; } }
Description
Tertiary variant styles
Parameters
None.
Requires
- [variable]
tertiary-background
- [variable]
tertiary-text-color
- [variable]
tertiary-background-hover
- [variable]
tertiary-background-active
Author
CDS
button-small-tertiary-loading
@mixin button-small-tertiary-loading() { ... }
@mixin button-small-tertiary-loading() { &, &:focus, &:hover { background-color: settings.$tertiary-background-active; } }
Description
Tertiary variant loading styles
Parameters
None.
Requires
- [variable]
tertiary-background-active
Author
CDS
button-small-transactional
@mixin button-small-transactional() { ... }
@mixin button-small-transactional() { background-color: settings.$transactional-background; &::after { border-color: settings.$transactional-background-focus; } &:focus { background-color: settings.$transactional-background-focus; } &:hover { background-color: settings.$transactional-background-hover; } &:active { background-color: settings.$transactional-background-active; } }
Description
Transactional variant styles
Parameters
None.
Requires
- [variable]
transactional-background
- [variable]
transactional-background-focus
- [variable]
transactional-background-hover
- [variable]
transactional-background-active
Author
CDS
button-small-transactional-loading
@mixin button-small-transactional-loading() { ... }
@mixin button-small-transactional-loading() { &, &:focus, &:hover { background-color: settings.$transactional-background-active; } }
Description
Transactional variant loading styles
Parameters
None.
Requires
- [variable]
transactional-background-active
Author
CDS
button-small-neutral
@mixin button-small-neutral() { ... }
@mixin button-small-neutral() { background-color: settings.$neutral-background; color: settings.$neutral-text-color; &:focus { background-color: transparent; } &:hover { background-color: settings.$neutral-background-hover; color: settings.$neutral-text-color; } &:active { background-color: settings.$neutral-background-active; } }
Description
Neutral variant styles
Parameters
None.
Requires
- [variable]
neutral-background
- [variable]
neutral-text-color
- [variable]
neutral-background-hover
- [variable]
neutral-background-active
Author
CDS
button-small-neutral-loading
@mixin button-small-neutral-loading() { ... }
@mixin button-small-neutral-loading() { &, &:focus, &:hover { background-color: settings.$neutral-background-active; } }
Description
Neutral variant loading styles
Parameters
None.
Requires
- [variable]
neutral-background-active
Author
CDS
button-small-danger
@mixin button-small-danger() { ... }
@mixin button-small-danger() { background-color: settings.$danger-background; color: settings.$danger-text-color; &::after { border-color: currentColor; } &:focus { background-color: transparent; } &:hover { background-color: settings.$danger-background-hover; color: settings.$danger-text-color; } &:active { background-color: settings.$danger-background-active; } }
Description
Danger variant styles
Parameters
None.
Requires
- [variable]
danger-background
- [variable]
danger-text-color
- [variable]
danger-background-hover
- [variable]
danger-background-active
Author
CDS
button-small-danger-loading
@mixin button-small-danger-loading() { ... }
@mixin button-small-danger-loading() { &, &:focus, &:hover { background-color: settings.$danger-background-active; } }
Description
Danger variant loading styles
Parameters
None.
Requires
- [variable]
danger-background-active
Author
CDS
button-small-full-width
@mixin button-small-full-width() { ... }
@mixin button-small-full-width() { display: block; width: 100%; & + & { @include kib-core-spacing(margin, none, start); @include kib-core-spacing(margin, small, top); } }
Description
Full width small button
Parameters
None.
Author
CDS
Variables
default-text-color
Kept to avoid breaking change
$default-text-color: kib-core-theme-get('next', 'neutral', 50) !default;
Description
Default text color
Type
Color
Author
CDS
default-background
Kept to avoid breaking change
$default-background: kib-core-theme-get('next', 'brand') !default;
Description
Default variant background color
Type
Color
Author
CDS
default-background-hover
Kept to avoid breaking change
$default-background-hover: kib-core-theme-get('next', 'brand', 400) !default;
Description
Default variant background color on hover
Type
Color
Author
CDS
default-background-focus
Kept to avoid breaking change
$default-background-focus: kib-core-theme-get('next', 'brand', 600) !default;
Description
Default variant background color on focus
Type
Color
Author
CDS
default-background-active
Kept to avoid breaking change
$default-background-active: kib-core-theme-get('next', 'brand', 900) !default;
Description
Default variant background color when pressed
Type
Color
Author
CDS
secondary-background
Kept to avoid breaking change
$secondary-background: transparent !default;
Description
Secondary variant background color on hover
Type
Color
Author
CDS
secondary-background-hover
Kept to avoid breaking change
$secondary-background-hover: kib-core-theme-get('next', 'brand', 50) !default;
Description
Secondary variant background color on hover
Type
Color
Author
CDS
secondary-background-active
Kept to avoid breaking change
$secondary-background-active: kib-core-theme-get('next', 'brand', 100) !default;
Description
Secondary variant background color when pressed
Type
Color
Author
CDS
secondary-border-color
Kept to avoid breaking change
$secondary-border-color: currentColor !default;
Description
Secondary variant border color
Type
Color
Author
CDS
secondary-border-width
Kept to avoid breaking change
$secondary-border-width: unit.rem(2px) !default;
Description
Secondary variant border width
Type
Number
Author
CDS
secondary-text-color
Kept to avoid breaking change
$secondary-text-color: $default-background !default;
Description
Secondary variant text color
Type
Color
Author
CDS
tertiary-text-color
Kept to avoid breaking change
$tertiary-text-color: kib-core-theme-get('next', 'brand') !default;
tertiary-background
Kept to avoid breaking change
$tertiary-background: transparent !default;
Description
Tertiary variant background color on hover
Type
Color
Used by
- [mixin]
button-small-tertiary
Author
CDS
tertiary-background-hover
Kept to avoid breaking change
$tertiary-background-hover: kib-core-theme-get('next', 'brand', 50) !default;
Description
Tertiary variant background color on hover
Type
Color
Used by
- [mixin]
button-small-tertiary
Author
CDS
tertiary-background-active
Kept to avoid breaking change
$tertiary-background-active: kib-core-theme-get('next', 'brand', 100) !default;
Description
Tertiary variant background color when active (pressed)
Type
Color
Used by
- [mixin]
button-small-tertiary
- [mixin]
button-small-tertiary-loading
Author
CDS
transactional-background
Kept to avoid breaking change
$transactional-background: kib-core-theme-get('next', 'transactional') !default;
Description
Transactional variant background color
Type
Color
Author
CDS
transactional-background-hover
Kept to avoid breaking change
$transactional-background-hover: kib-core-theme-get('next', 'transactional', 300) !default;
Description
Transactional variant background color on hover
Type
Color
Author
CDS
transactional-background-focus
Kept to avoid breaking change
$transactional-background-focus: $transactional-background !default;
Description
Transactional variant background color on focus
Type
Color
Author
CDS
transactional-background-active
Kept to avoid breaking change
$transactional-background-active: kib-core-theme-get('next', 'transactional', 500) !default;
Description
Transactional variant background color when pressed
Type
Color
Author
CDS
neutral-text-color
Kept to avoid breaking change
$neutral-text-color: kib-core-theme-get('next', 'neutral', 600) !default;
neutral-background
Kept to avoid breaking change
$neutral-background: transparent !default;
neutral-background-hover
Kept to avoid breaking change
$neutral-background-hover: kib-core-theme-get('next', 'neutral', 100) !default;
Description
Neutral variant background color on hover state
Type
Color
Used by
- [mixin]
button-small-neutral
Author
CDS
neutral-background-active
Kept to avoid breaking change
$neutral-background-active: kib-core-theme-get('next', 'neutral', 200) !default;
Description
Neutral variant background color when pressed
Type
Color
Used by
- [mixin]
button-small-neutral
- [mixin]
button-small-neutral-loading
Author
CDS
danger-text-color
Kept to avoid breaking change
$danger-text-color: kib-core-theme-get('next', 'danger') !default;
Description
Danger variant text color
Type
Color
Author
CDS
danger-background
Kept to avoid breaking change
$danger-background: transparent !default;
Description
Danger variant background color
Type
Color
Author
CDS
danger-background-hover
Kept to avoid breaking change
$danger-background-hover: kib-core-theme-get('next', 'neutral', 100) !default;
Description
Danger variant background color on hover
Type
Color
Author
CDS
danger-background-active
Kept to avoid breaking change
$danger-background-active: kib-core-theme-get('next', 'neutral', 200) !default;
Description
Danger variant background color when pressed
Type
Color
Author
CDS
height
Kept to avoid breaking change
$height: kib-core-dimensions-get('huge') !default;
Description
Control's height
Type
Number
Author
CDS
spacing-vertical
Kept to avoid breaking change
$spacing-vertical: unit.rem(12px) !default;
Description
Control's vertical padding
Type
Number
Used by
- [mixin]
button-small-default
- [mixin]
caption-top
- [mixin]
caption-bottom
- [mixin]
cell-base
Author
CDS