From 82f017e020152db4b04536c4955f4063fbe5d976 Mon Sep 17 00:00:00 2001 From: Jaideep M V <107jaideep@gmail.com> Date: Tue, 7 Jan 2025 12:57:27 +0530 Subject: [PATCH] feat: colour token updates - progress bar --- .../reusable/progressBar/progressBar.scss | 40 +++++++++++++++---- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/src/components/reusable/progressBar/progressBar.scss b/src/components/reusable/progressBar/progressBar.scss index 9ed058e1..dbaf27e5 100644 --- a/src/components/reusable/progressBar/progressBar.scss +++ b/src/components/reusable/progressBar/progressBar.scss @@ -4,16 +4,18 @@ @use '~@kyndryl-design-system/shidoka-foundation/scss/mixins/visibility.scss'; $progress-bar-status-colors: ( - default: var(--kd-color-background-primary-hover), - success: var(--kd-color-background-success), - error: var(--kd-color-background-error), + default: var(--kd-color-background-loader-bar-primary), + success: var(--kd-color-status-success-dark), + error: var(--kd-color-status-error-dark), ); $progress-bar-height: 4px; $progress-bar-radius: 4px; -$progress-bar-background: var(--kd-color-background-inverse-hover); -$progress-bar-indeterminate-color: map-get($progress-bar-status-colors, - default); +$progress-bar-background: var(--kd-color-background-loader-bar-secondary); +$progress-bar-indeterminate-color: map-get( + $progress-bar-status-colors, + default +); @mixin progress-bar-color($color) { background-color: $color; @@ -55,7 +57,6 @@ $progress-bar-indeterminate-color: map-get($progress-bar-status-colors, margin: 0; line-height: 16px; height: 16px; - color: var(--kd-color-text-level-secondary); } &__status-icon { @@ -64,6 +65,18 @@ $progress-bar-indeterminate-color: map-get($progress-bar-status-colors, padding-right: 2px; line-height: 1; + .success-icon { + svg { + fill: map-get($progress-bar-status-colors, success); + } + } + + .error-icon { + svg { + fill: map-get($progress-bar-status-colors, error); + } + } + p { color: var(--kd-color-text-level-secondary); padding: 0; @@ -117,7 +130,9 @@ $progress-bar-indeterminate-color: map-get($progress-bar-status-colors, width: 55px; position: absolute; left: 0; - @include progress-bar-color(map-get($progress-bar-status-colors, default)); + @include progress-bar-color( + map-get($progress-bar-status-colors, default) + ); animation: indeterminate 3s ease-in-out infinite; } @@ -138,6 +153,15 @@ $progress-bar-indeterminate-color: map-get($progress-bar-status-colors, } } +.active, +.success { + color: var(--kd-color-text-level-secondary); +} + +.error { + color: var(--kd-color-status-error-dark); +} + @keyframes indeterminate { 0% { left: 0;