From 101fd3c923da9811f26d1817972ca0c4b5afe65e Mon Sep 17 00:00:00 2001 From: Josefina Mancilla Date: Thu, 15 Apr 2021 17:09:46 -0500 Subject: [PATCH 01/11] feat: overflow menu --- .../overflow-menu/_overflow-menu.scss | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/packages/components/src/components/overflow-menu/_overflow-menu.scss b/packages/components/src/components/overflow-menu/_overflow-menu.scss index a192cdcbd849..2d15117e9f56 100644 --- a/packages/components/src/components/overflow-menu/_overflow-menu.scss +++ b/packages/components/src/components/overflow-menu/_overflow-menu.scss @@ -42,7 +42,7 @@ } &:hover { - background-color: $hover-ui; + background-color: $background-hover; } } @@ -72,7 +72,7 @@ .#{$prefix}--overflow-menu__trigger { @include box-shadow; - background-color: $field-01; + background-color: $field; transition: none; } @@ -80,12 +80,13 @@ .#{$prefix}--overflow-menu--light.#{$prefix}--overflow-menu--open .#{$prefix}--overflow-menu__trigger { background-color: $field-02; + // ? } .#{$prefix}--overflow-menu__icon { width: rem(16px); height: rem(16px); - fill: $icon-01; + fill: $icon-primary; // Windows, Firefox HCM Fix @media screen and (-ms-high-contrast: active), @@ -108,12 +109,12 @@ align-items: flex-start; width: rem(160px); list-style: none; - background-color: $field-01; + background-color: $field; &::after { position: absolute; display: block; - background-color: $field-01; + background-color: $field; transition: background-color $duration--fast-02 motion(entrance, productive); content: ''; @@ -121,11 +122,12 @@ } .#{$prefix}--overflow-menu.#{$prefix}--overflow-menu--open:hover { - background-color: $field-01; + background-color: $field; } .#{$prefix}--overflow-menu-options--light { background-color: $field-02; + // these tokens? &::after { background-color: $field-02; } @@ -133,6 +135,7 @@ .#{$prefix}--overflow-menu.#{$prefix}--overflow-menu--light.#{$prefix}--overflow-menu--open:hover { background-color: $field-02; + // ? } .#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']::after { @@ -233,7 +236,7 @@ } .#{$prefix}--overflow-menu--divider { - border-top: 1px solid $ui-03; + border-top: 1px solid $border-subtle; } .#{$prefix}--overflow-menu--light .#{$prefix}--overflow-menu--divider { @@ -282,11 +285,11 @@ } .#{$prefix}--overflow-menu-options__btn svg { - fill: $icon-02; + fill: $icon-secondary; } .#{$prefix}--overflow-menu-options__btn:hover svg { - fill: $icon-01; + fill: $icon-primary; } .#{$prefix}--overflow-menu-options__option-content { @@ -296,15 +299,15 @@ } .#{$prefix}--overflow-menu-options__option:hover { - background-color: $hover-ui; + background-color: $background-hover; } .#{$prefix}--overflow-menu-options__option--danger .#{$prefix}--overflow-menu-options__btn:hover, .#{$prefix}--overflow-menu-options__option--danger .#{$prefix}--overflow-menu-options__btn:focus { - color: $text-04; - background-color: $danger-01; + color: $text-on-color; + background-color: $button-danger-primary; svg { fill: currentColor; @@ -312,13 +315,13 @@ } .#{$prefix}--overflow-menu-options__option--disabled:hover { - background-color: $ui-01; + background-color: $layer; cursor: not-allowed; } .#{$prefix}--overflow-menu-options__option--disabled .#{$prefix}--overflow-menu-options__btn { - color: $disabled-02; + color: $text-disabled; pointer-events: none; &:hover, @@ -326,14 +329,14 @@ &:focus { @include focus-outline('reset'); - background-color: $ui-01; + background-color: $layer; } } .#{$prefix}--overflow-menu-options__option--disabled .#{$prefix}--overflow-menu-options__btn svg { - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--overflow-menu--flip { From e225fd3343c8b069c7e30e41ce291143432caf27 Mon Sep 17 00:00:00 2001 From: Josefina Mancilla Date: Thu, 15 Apr 2021 17:10:10 -0500 Subject: [PATCH 02/11] feat: pagination --- .../pagination-nav/_pagination-nav.scss | 8 +++--- .../components/pagination/_pagination.scss | 26 +++++++++---------- .../pagination/_unstable_pagination.scss | 26 +++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/packages/components/src/components/pagination-nav/_pagination-nav.scss b/packages/components/src/components/pagination-nav/_pagination-nav.scss index 346ce87d886c..f009425a34b1 100644 --- a/packages/components/src/components/pagination-nav/_pagination-nav.scss +++ b/packages/components/src/components/pagination-nav/_pagination-nav.scss @@ -29,7 +29,7 @@ display: block; width: 0; height: $carbon--spacing-02; - background-color: $interactive-01; + background-color: $background-brand; opacity: 0; transition: width $duration--fast-02 motion(standard, productive); content: ''; @@ -59,9 +59,9 @@ /// @param {Number} $select-icon-top-position [$carbon--spacing-05] /// @param {Number} $select-icon-left-position [$carbon--spacing-05] @mixin pagination-nav( - $text-color: $text-02, - $text-color-active: $text-02, - $background-color-hover: $hover-ui, + $text-color: $text-secondary, + $text-color-active: $text-secondary, + $background-color-hover: $background-hover, $background-color-active: initial, $font-weight: 400, $item-padding: 0, diff --git a/packages/components/src/components/pagination/_pagination.scss b/packages/components/src/components/pagination/_pagination.scss index 3d2d7e9fb666..253c54c69744 100644 --- a/packages/components/src/components/pagination/_pagination.scss +++ b/packages/components/src/components/pagination/_pagination.scss @@ -36,8 +36,8 @@ $css--helpers: true; width: calc(100% - 1px); min-height: rem(48px); overflow-x: auto; - background-color: $ui-01; - border-top: 1px solid $ui-03; + background-color: $layer; + border-top: 1px solid $border-subtle; @include carbon--breakpoint('md') { overflow: initial; @@ -84,7 +84,7 @@ $css--helpers: true; } .#{$prefix}--pagination .#{$prefix}--select-input:hover { - background: $hover-ui; + background: $background-hover; } .#{$prefix}--pagination .#{$prefix}--select__arrow { @@ -95,13 +95,13 @@ $css--helpers: true; .#{$prefix}--pagination .#{$prefix}--select__item-count .#{$prefix}--select-input { - border-right: $spacing-4xs solid $ui-03; + border-right: $spacing-4xs solid $border-subtle; } .#{$prefix}--pagination .#{$prefix}--select__page-number .#{$prefix}--select-input { - border-left: 1px solid $ui-03; + border-left: 1px solid $border-subtle; } .#{$prefix}--pagination__left, @@ -146,7 +146,7 @@ $css--helpers: true; span.#{$prefix}--pagination__text { margin-left: $carbon--spacing-05; - color: $text-02; + color: $text-secondary; } .#{$prefix}--pagination__button, @@ -162,11 +162,11 @@ $css--helpers: true; background: none; border: none; - border-left: 1px solid $ui-03; + border-left: 1px solid $border-subtle; cursor: pointer; transition: outline $duration--fast-02 motion(standard, productive), background-color $duration--fast-02 motion(standard, productive); - fill: $ui-05; + fill: $layer-selected-inverse; // Windows, Firefox HCM Fix @media screen and (-ms-high-contrast: active), @@ -185,23 +185,23 @@ $css--helpers: true; .#{$prefix}--pagination__button:hover, .#{$prefix}--btn--ghost:hover.#{$prefix}--pagination__button { - background: $hover-ui; + background: $background-hover; } .#{$prefix}--pagination__button--no-index, .#{$prefix}--btn--ghost.#{$prefix}--pagination__button--no-index { cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--pagination__button:disabled:hover, .#{$prefix}--pagination__button--no-index:hover, .#{$prefix}--btn--ghost:disabled:hover.#{$prefix}--pagination__button, .#{$prefix}--btn--ghost:hover.#{$prefix}--pagination__button--no-index { - background: $ui-01; - border-color: $ui-03; + background: $layer; + border-color: $border-subtle; cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } // Skeleton state diff --git a/packages/components/src/components/pagination/_unstable_pagination.scss b/packages/components/src/components/pagination/_unstable_pagination.scss index c803b3eb27cb..72fc4012e38a 100644 --- a/packages/components/src/components/pagination/_unstable_pagination.scss +++ b/packages/components/src/components/pagination/_unstable_pagination.scss @@ -29,8 +29,8 @@ $css--helpers: true; width: 100%; height: rem(48px); - background-color: $ui-01; - border-top: 1px solid $ui-03; + background-color: $layer; + border-top: 1px solid $border-subtle; border-bottom: 1px solid transparent; } @@ -40,7 +40,7 @@ $css--helpers: true; } margin: 0 $carbon--spacing-05; - color: $text-02; + color: $text-secondary; } .#{$prefix}--unstable-pagination__left, @@ -79,7 +79,7 @@ $css--helpers: true; height: 100%; margin: 0; padding: 0 rem(14px); - color: $ui-05; + color: $layer-selected-inverse; background: none; border: none; @@ -87,7 +87,7 @@ $css--helpers: true; cursor: pointer; transition: outline $duration--fast-02 motion(standard, productive), background-color $duration--fast-02 motion(standard, productive); - fill: $ui-05; + fill: $layer-selected-inverse; } // Unset height/width set by icon-only button: @@ -101,25 +101,25 @@ $css--helpers: true; } .#{$prefix}--unstable-pagination__button:hover { - color: $ui-05; - background: $hover-ui; + color: $layer-selected-inverse; + background: $background-hover; } .#{$prefix}--unstable-pagination__button--no-index { cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--unstable-pagination__button.#{$prefix}--btn:disabled { background: transparent; - border-color: $ui-03; + border-color: $border-subtle; } .#{$prefix}--unstable-pagination__button:disabled:hover, .#{$prefix}--unstable-pagination__button--no-index:hover { background: transparent; cursor: not-allowed; - fill: $disabled-02; + fill: $icon-disabled; } .#{$prefix}--unstable-pagination__page-selector, @@ -155,7 +155,7 @@ $css--helpers: true; .#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select-input:hover, .#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select-input:hover { - background: $hover-ui; + background: $background-hover; } .#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select__arrow, @@ -169,11 +169,11 @@ $css--helpers: true; } .#{$prefix}--unstable-pagination__page-selector { - border-left: 1px solid $ui-03; + border-left: 1px solid $border-subtle; } .#{$prefix}--unstable-pagination__page-sizer { - border-right: 1px solid $ui-03; + border-right: 1px solid $border-subtle; } } From 0f804febfdea3fa82b80f03b2de245c55a0cd86c Mon Sep 17 00:00:00 2001 From: Josefina Mancilla Date: Thu, 15 Apr 2021 17:10:21 -0500 Subject: [PATCH 03/11] feat: popover --- .../components/src/components/popover/_popover.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/components/src/components/popover/_popover.scss b/packages/components/src/components/popover/_popover.scss index e92a3403e468..8a0faeb009cd 100644 --- a/packages/components/src/components/popover/_popover.scss +++ b/packages/components/src/components/popover/_popover.scss @@ -13,7 +13,7 @@ /// @access private /// @group popover @mixin popover { - $popover-text-color: $text-01; + $popover-text-color: $text-primary; $popover-caret-offset: 1rem; $popover-box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.2); $popover-offset: 8px; @@ -39,17 +39,17 @@ width: max-content; max-width: rem(368px); color: $popover-text-color; - background-color: $ui-01; + background-color: $layer; border-radius: 2px; } .#{$prefix}--popover--light .#{$prefix}--popover-contents { - background-color: $ui-background; + background-color: $background; } .#{$prefix}--popover--high-contrast .#{$prefix}--popover-contents { - color: $inverse-01; - background-color: $inverse-02; + color: $text-inverse; + background-color: $background-inverse; } .#{$prefix}--popover--caret .#{$prefix}--popover-contents::before, From 3be9f3c23e8c20fcaef80c1383521db00617d1c9 Mon Sep 17 00:00:00 2001 From: Josefina Mancilla Date: Thu, 15 Apr 2021 17:10:37 -0500 Subject: [PATCH 04/11] feat: progress indicator --- .../_progress-indicator.scss | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/packages/components/src/components/progress-indicator/_progress-indicator.scss b/packages/components/src/components/progress-indicator/_progress-indicator.scss index a5b931477387..2c2e95c9d615 100644 --- a/packages/components/src/components/progress-indicator/_progress-indicator.scss +++ b/packages/components/src/components/progress-indicator/_progress-indicator.scss @@ -62,7 +62,7 @@ height: $carbon--spacing-05; margin: rem(10px) $carbon--spacing-03 0 0; border-radius: 50%; - fill: $interactive-04; + fill: $interactive; } .#{$prefix}--progress-label { @@ -71,7 +71,7 @@ max-width: rem(88px); margin: $carbon--spacing-03 0 0 0; overflow: hidden; - color: $text-01; + color: $text-primary; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; @@ -85,15 +85,15 @@ } .#{$prefix}--progress-label:hover { - color: $link-01; - box-shadow: 0 rem(1px) $link-01; + color: $link-primary; + box-shadow: 0 rem(1px) $link-primary; cursor: pointer; } .#{$prefix}--progress-label:focus { - color: $link-01; + color: $link-primary; outline: none; - box-shadow: 0 rem(3px) 0 0 $link-01; + box-shadow: 0 rem(3px) 0 0 $link-primary; } .#{$prefix}--progress--space-equal .#{$prefix}--progress-label { @@ -102,8 +102,8 @@ } .#{$prefix}--progress-label:active { - color: $interactive-01; - box-shadow: 0 rem(3px) 0 0 $interactive-01; + color: $background-brand; + box-shadow: 0 rem(3px) 0 0 $background-brand; } //OVERFLOW STYLING @@ -134,7 +134,7 @@ margin-top: rem(40px); margin-left: rem(22px); padding: $carbon--spacing-03 $carbon--spacing-05; - color: $inverse-01; + color: $text-inverse; visibility: hidden; } @@ -144,7 +144,7 @@ width: rem(150px); height: auto; - color: $inverse-01; + color: $text-inverse; } //OPTIONAL HELPER TEXT STYLING @@ -155,32 +155,32 @@ left: 0; margin-top: rem(28px); margin-left: $carbon--spacing-06; - color: $text-02; + color: $text-secondary; text-align: start; } //CURRENT STYLING .#{$prefix}--progress-step--current { .#{$prefix}--progress-line { - background-color: $interactive-04; + background-color: $interactive; } } //INCOMPLETE STYLING .#{$prefix}--progress-step--incomplete { svg { - fill: $ui-05; + fill: $layer-selected-inverse; } .#{$prefix}--progress-line { - background-color: $ui-03; + background-color: $layer-accent; } } //COMPLETED STYLING .#{$prefix}--progress-step--complete { .#{$prefix}--progress-line { - background-color: $interactive-04; + background-color: $interactive; } } @@ -200,15 +200,15 @@ .#{$prefix}--progress-step-button--unclickable .#{$prefix}--progress-label:hover { - color: $text-01; + color: $text-primary; box-shadow: none; cursor: default; } .#{$prefix}--progress-step-button--unclickable .#{$prefix}--tooltip__label:hover { - color: $link-01; - box-shadow: 0 rem(1px) $link-01; + color: $link-primary; + box-shadow: 0 rem(1px) $link-primary; cursor: pointer; } @@ -248,7 +248,7 @@ // ERROR STYLING .#{$prefix}--progress__warning > * { - fill: $support-01; + fill: $support-error; } // Skeleton State From c6f8009ad99ba7c5798b7030843e5d3af239a75b Mon Sep 17 00:00:00 2001 From: Josefina Mancilla Date: Thu, 15 Apr 2021 17:10:49 -0500 Subject: [PATCH 05/11] feat: radio --- .../src/components/radio-button/_radio-button.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/src/components/radio-button/_radio-button.scss b/packages/components/src/components/radio-button/_radio-button.scss index 4d255d272d6c..3b12269dd05a 100644 --- a/packages/components/src/components/radio-button/_radio-button.scss +++ b/packages/components/src/components/radio-button/_radio-button.scss @@ -72,7 +72,7 @@ height: rem(18px); margin: rem(2px) $carbon--spacing-03 rem(2px) rem(2px); background-color: transparent; - border: $radio-border-width solid $icon-01; + border: $radio-border-width solid $icon-primary; border-radius: 50%; } @@ -82,14 +82,14 @@ display: flex; align-items: center; justify-content: center; - border-color: $icon-01; + border-color: $icon-primary; &::before { position: relative; display: inline-block; width: 100%; height: 100%; - background-color: $icon-01; + background-color: $icon-primary; border-radius: 50%; transform: scale(0.5); content: ''; From 3b30b4b3ef01f3e71ee07a7b5147de420fb74c43 Mon Sep 17 00:00:00 2001 From: Josefina Mancilla Date: Thu, 15 Apr 2021 17:11:00 -0500 Subject: [PATCH 06/11] feat: search --- .../src/components/search/_search.scss | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/packages/components/src/components/search/_search.scss b/packages/components/src/components/search/_search.scss index d3c3605a3f8a..2267043fb844 100644 --- a/packages/components/src/components/search/_search.scss +++ b/packages/components/src/components/search/_search.scss @@ -38,11 +38,11 @@ order: 1; width: 100%; padding: 0 $carbon--spacing-08; - color: $text-01; + color: $text-primary; text-overflow: ellipsis; - background-color: $field-01; + background-color: $field; border: none; - border-bottom: 1px solid $ui-04; + border-bottom: 1px solid $border-strong; transition: background-color $duration--fast-02 motion(standard, productive), outline $duration--fast-02 motion(standard, productive); appearance: none; @@ -62,7 +62,7 @@ .#{$prefix}--search-input[disabled] { color: $disabled; - background-color: $disabled-01; + background-color: $field-disabled; border-bottom: 1px solid transparent; cursor: not-allowed; @@ -70,8 +70,7 @@ color: $disabled; } } - - .#{$prefix}--search--light .#{$prefix}--search-input { + ß .#{$prefix}--search--light .#{$prefix}--search-input { background: $field-02; } @@ -118,7 +117,7 @@ height: rem(16px); transform: translateY(-50%); pointer-events: none; - fill: $icon-02; + fill: $icon-secondary; // Windows, Firefox HCM Fix @media screen and (-ms-high-contrast: active), @@ -143,14 +142,14 @@ display: block; width: 2px; height: calc(100% - 2px); - background-color: $field-01; + background-color: $field; transition: background-color $duration--fast-02 motion(standard, productive); content: ''; } &:hover { - border-bottom: 1px solid $ui-04; + border-bottom: 1px solid $border-strong; &::before { background-color: $hover-field; @@ -161,7 +160,7 @@ .#{$prefix}--search-button { flex-shrink: 0; margin-left: $carbon--spacing-01; - background-color: $field-01; + background-color: $field; svg { vertical-align: middle; @@ -196,7 +195,7 @@ background-color $duration--fast-02 motion(standard, productive), outline $duration--fast-02 motion(standard, productive), border $duration--fast-02 motion(standard, productive); - fill: $icon-01; + fill: $icon-primary; &:hover { background-color: $hover-field; @@ -209,7 +208,7 @@ &:active { @include focus-outline('outline'); - background-color: $selected-ui; + background-color: $background-selected; } } @@ -333,7 +332,7 @@ } .#{$prefix}--search--expandable .#{$prefix}--search-magnifier:hover { - background-color: $hover-ui; + background-color: $background-hover; } .#{$prefix}--search--expandable.#{$prefix}--search--expanded @@ -342,12 +341,12 @@ } .#{$prefix}--search--expandable .#{$prefix}--search-magnifier-icon { - fill: $icon-01; + fill: $icon-primary; } .#{$prefix}--search--expandable.#{$prefix}--search--expanded .#{$prefix}--search-magnifier-icon { - fill: $icon-02; + fill: $icon-secondary; } } From eb72e135f75f5e6411aab730a0c0f4bcfa11176a Mon Sep 17 00:00:00 2001 From: Josefina Mancilla Date: Thu, 15 Apr 2021 17:11:38 -0500 Subject: [PATCH 07/11] feat: select --- .../src/components/select/_select.scss | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/components/src/components/select/_select.scss b/packages/components/src/components/select/_select.scss index 33603fd24908..09ae67179e75 100644 --- a/packages/components/src/components/select/_select.scss +++ b/packages/components/src/components/select/_select.scss @@ -45,10 +45,10 @@ width: 100%; height: rem(40px); padding: 0 $spacing-09 0 $spacing-05; - color: $text-01; - background-color: $field-01; + color: $text-primary; + background-color: $field; border: none; - border-bottom: 1px solid $ui-04; + border-bottom: 1px solid $border-strong; border-radius: 0; cursor: pointer; // reset disabled