Chips
Installation
yarn add @chewy/kib-chips-styles
Import
@use '~@chewy/kib-chips-styles/src/styles' as kib-chips;
Mixins
chip-deselected-styles
@mixin chip-deselected-styles() { ... }
@mixin chip-deselected-styles() { color: map.get(variants.$styles, $type, '$chip-deselected-text-color'); background: map.get(variants.$styles, $type, '$chip-deselected-background'); border: kib-foundations.rem(1px) solid map.get(variants.$styles, $type, '$chip-deselected-border-color'); &:hover { color: map.get(variants.$styles, $type, '$chip-deselected-text-color'); background: map.get(variants.$styles, $type, '$chip-deselected-hover-background'); border: kib-foundations.rem(1px) solid map.get(variants.$styles, $type, '$chip-deselected-border-color'); } &:active { background: map.get(variants.$styles, $type, '$chip-deselected-active-background'); border: kib-foundations.rem(1px) solid map.get(variants.$styles, $type, '$chip-deselected-border-color'); } }
chip-focus-styles
@mixin chip-focus-styles() { ... }
@mixin chip-focus-styles() { &::after { opacity: 1; } }
Description
Default styles for focus state
Parameters
None.
Author
CDS
chip-active-hover-styles
@mixin chip-active-hover-styles() { ... }
@mixin chip-active-hover-styles() { &::after { opacity: 0; } }
Description
Default styles for pressed state
Parameters
None.
Author
CDS
Variables
default-background
$default-background: color.get('chip', '01', 'bg-primary') !default;
Description
Default background color
Type
Color
Author
CDS
pressed-background
$pressed-background: color.get('chip', '01', 'bg-high') !default;
Description
Default Pressed background color
Type
Color
Used by
- [mixin]
chip-choice-active-styles
Author
CDS
default-text-color
$default-text-color: color.get('chip', '01', 'text') !default;
Description
Default text color
Type
Color
Author
CDS
chip-icon-color
$chip-icon-color: color.get('chip', '03', 'text') !default;
Description
Default icon color
Type
Color
Author
CDS
chip-text-color
$chip-text-color: color.get('chip', '03', 'text') !default;
Description
Default chip text color
Type
Color
Author
CDS
chip-background
$chip-background: color.get('chip', '03', 'bg-primary') !default;
Description
Default chip background color
Type
Color
Author
CDS
chip-pressed-background
$chip-pressed-background: color.get('chip', '03', 'bg-high') !default;
Description
Default chip pressed background color
Type
Color
Author
CDS
chip-height
$chip-height: kib-core.dimensions-get(default) * 2.25 !default;
Description
Default chip height
Type
Number
Author
CDS
chip-focus-border-color
$chip-focus-border-color: color.get('chip', '03', 'text') !default;
Description
Default chip focus border color
Type
Color
Author
CDS
chip-disabled-opacity
$chip-disabled-opacity: 0.3 !default;
Description
Default chip disabled opacity
Type
Number
Author
CDS
chip-icon-size
$chip-icon-size: kib-core.dimensions-get(default) * 1.25 !default;
Description
Default icon size
Type
Number
Author
CDS
chip-spacing-vertical
$chip-spacing-vertical: spacing.get('s2') !default;
Description
Default chip vertical spacing
Type
Number
Author
CDS
chip-spacing-horizontal
$chip-spacing-horizontal: spacing.get('s3') !default;
Description
Default chip horizontal spacing
Type
Number
Author
CDS