Skip to content

Commit

Permalink
tweak progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Dec 6, 2023
1 parent deb09a8 commit 89390ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scss/_progressBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}
Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion src/components/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function ProgressBar({
return (
<div className={`${Default.CSS_NAMESPACE}__progress-bar--wrp`}>
<div
className={`${Default.CSS_NAMESPACE}__progress-bar--background ${Default.CSS_NAMESPACE}__progress-bar-theme--${theme} ${Default.CSS_NAMESPACE}__progress-bar--${type}`}
className={`${Default.CSS_NAMESPACE}__progress-bar--bg ${Default.CSS_NAMESPACE}__progress-bar-theme--${theme} ${Default.CSS_NAMESPACE}__progress-bar--${type}`}
/>
<div
role="progressbar"
Expand Down

0 comments on commit 89390ec

Please sign in to comment.