From 89390ec666383c8cd12f4b06b8024e905c773976 Mon Sep 17 00:00:00 2001 From: Fadi Khadra Date: Wed, 6 Dec 2023 14:46:53 +0100 Subject: [PATCH] tweak progress bar --- scss/_progressBar.scss | 4 ++-- scss/_variables.scss | 1 + src/components/ProgressBar.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scss/_progressBar.scss b/scss/_progressBar.scss index 14978634..938f3084 100644 --- a/scss/_progressBar.scss +++ b/scss/_progressBar.scss @@ -43,8 +43,8 @@ border-bottom-left-radius: var(--toastify-toast-bd-radius); } - &--background { - opacity: 0.1; + &--bg { + opacity: var(--toastify-color-progress-bgo); width: 100%; height: 100%; } diff --git a/scss/_variables.scss b/scss/_variables.scss index 773fae56..8a92ca0c 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -56,4 +56,5 @@ $rt-mobile: 'only screen and (max-width : 480px)' !default; --toastify-color-progress-success: var(--toastify-color-success); --toastify-color-progress-warning: var(--toastify-color-warning); --toastify-color-progress-error: var(--toastify-color-error); + --toastify-color-progress-bgo: 0.2; } diff --git a/src/components/ProgressBar.tsx b/src/components/ProgressBar.tsx index 40052219..27ea0a58 100644 --- a/src/components/ProgressBar.tsx +++ b/src/components/ProgressBar.tsx @@ -127,7 +127,7 @@ export function ProgressBar({ return (