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.

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
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.

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
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.

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
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.

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.

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.

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
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.

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
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

Deprecated!

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

Deprecated!

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

Deprecated!

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

Deprecated!

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

Deprecated!

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

Deprecated!

Kept to avoid breaking change

$secondary-background: transparent !default;
Description

Secondary variant background color on hover

Type

Color

Author
  • CDS

secondary-background-hover

Deprecated!

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

Deprecated!

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

Deprecated!

Kept to avoid breaking change

$secondary-border-color: currentColor !default;
Description

Secondary variant border color

Type

Color

Author
  • CDS

secondary-border-width

Deprecated!

Kept to avoid breaking change

$secondary-border-width: unit.rem(2px) !default;
Description

Secondary variant border width

Type

Number

Author
  • CDS

secondary-text-color

Deprecated!

Kept to avoid breaking change

$secondary-text-color: $default-background !default;
Description

Secondary variant text color

Type

Color

Author
  • CDS

tertiary-text-color

Deprecated!

Kept to avoid breaking change

$tertiary-text-color: kib-core-theme-get('next', 'brand') !default;
Description

Tertiary variant text color

Type

Color

Used by
Author
  • CDS

tertiary-background

Deprecated!

Kept to avoid breaking change

$tertiary-background: transparent !default;
Description

Tertiary variant background color on hover

Type

Color

Used by
Author
  • CDS

tertiary-background-hover

Deprecated!

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
Author
  • CDS

tertiary-background-active

Deprecated!

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

Author
  • CDS

transactional-background

Deprecated!

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

Deprecated!

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

Deprecated!

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

Deprecated!

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

Deprecated!

Kept to avoid breaking change

$neutral-text-color: kib-core-theme-get('next', 'neutral', 600) !default;
Description

Neutral variant text color

Type

Color

Used by
Author
  • CDS

neutral-background

Deprecated!

Kept to avoid breaking change

$neutral-background: transparent !default;
Description

Neutral variant background color

Type

Color

Used by
Author
  • CDS

neutral-background-hover

Deprecated!

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
Author
  • CDS

neutral-background-active

Deprecated!

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

Author
  • CDS

danger-text-color

Deprecated!

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

Deprecated!

Kept to avoid breaking change

$danger-background: transparent !default;
Description

Danger variant background color

Type

Color

Author
  • CDS

danger-background-hover

Deprecated!

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

Deprecated!

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

Deprecated!

Kept to avoid breaking change

$height: kib-core-dimensions-get('huge') !default;
Description

Control's height

Type

Number

Author
  • CDS

spacing-vertical

Deprecated!

Kept to avoid breaking change

$spacing-vertical: unit.rem(12px) !default;
Description

Control's vertical padding

Type

Number

Used by
Author
  • CDS