Progress Linear

Installation

  yarn add @chewy/kib-progress-styles

Import

  @use '~@chewy/kib-progress-styles/src/kib-progress-linear/styles' as kib-progress-linear;

Mixins

container

@mixin container() { ... }@mixin container() { 
  display: block;
  width: 100%;
 }
Description

Root container of all progress linear

Parameters

None.

label

@mixin label() { ... }@mixin label() { 
  @include kib-core.type-size-block-element(base);

  margin-bottom: settings.$label-spacing;
 }
Description

Progress linear label

Parameters

None.

Requires

indicator

@mixin indicator() { ... }@mixin indicator() { 
  display: block;
  width: 100%;
  height: settings.$height;
  transform-origin: left;
  transition: transform 0.3s, background-color 0.3s;
  background-color: settings.$default-color;
  border-radius: settings.$border-radius;

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
 }
Description

Base styles for the kib-progress-linear indicator.

Parameters

None.

Requires

value

@mixin value() { ... }@mixin value() { 
  color: settings.$value-color;
 }
Description

Style for kib-progress-linear value

Parameters

None.

Requires

Variables

height

$height: kib-core.dimensions-get(small) !default;
Description

Height of progress-linear

Type

Number (rem)

background-color

$background-color: color.get('action', 'switch', 'background', 'on', '03') !default;
Description

Background color for progress-linear indicator container

Type

Color

default-color

$default-color: color.get('action', 'switch', 'background', 'on', 'primary') !default;
Description

Default color for progress-linear indicator

Type

Color

Used by

border-radius

$border-radius: kib-core.dimensions-get(small) !default;
Description

Border radius of progress-linear

Type

Number (rem)

value-color

$value-color: color.get('text', 'secondary') !default;
Description

Text Color for progress-linear value

Type

Color

Used by

label-spacing

$label-spacing: spacing.get('s2') !default;
Description

Label Spacing of progress-linear

Type

Number (rem)

wrapper-spacing

$wrapper-spacing: spacing.get('s1') !default;
Description

Wrapper Spacing of progress-linear

Type

Number (rem)

indicator-spacing

$indicator-spacing: spacing.get('s2') !default;
Description

Indicator Spacing of progress-linear

Type

Number (rem)