Skip to content

Commit e97b584

Browse files
committed
fix: styling for progress bar override
1 parent be206cd commit e97b584

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.2.30-beta-6",
3+
"version": "0.2.30-beta-8",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Services/ToastManager/toastManager.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import 'react-toastify/dist/ReactToastify.css';
2+
13
.Toastify__toast-container {
24
padding: 0;
35
width: 280px;

src/Shared/Services/ToastManager/toastManager.service.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { toast, ToastContainer, ToastOptions } from 'react-toastify'
2-
import 'react-toastify/dist/ReactToastify.css'
32
import { ToastProps, ToastVariantType } from './types'
43
import { TOAST_BASE_CONFIG, TOAST_VARIANT_TO_CONFIG_MAP } from './constants'
54
import { ToastContent } from './ToastContent'
@@ -98,13 +97,13 @@ class ToastManager {
9897
<div className="dc__no-shrink flex dc__fill-available-space icon-dim-20">{customIcon ?? icon}</div>
9998
),
10099
type,
100+
progressStyle: {
101+
background: customProgressBarBg || progressBarBg,
102+
},
101103
// Show the progress bar if the auto close is disabled
102104
...(options.autoClose === false
103105
? {
104106
progress: 1,
105-
progressStyle: {
106-
background: customProgressBarBg || progressBarBg,
107-
},
108107
}
109108
: {}),
110109
},

0 commit comments

Comments
 (0)