Skip to content

Commit 0650049

Browse files
chore(deps): bump react-toastify from 9.1.3 to 11.0.5 (#540)
* chore(deps): bump react-toastify from 9.1.3 to 11.0.5 Bumps [react-toastify](https://github.com/fkhadra/react-toastify) from 9.1.3 to 11.0.5. - [Release notes](https://github.com/fkhadra/react-toastify/releases) - [Commits](fkhadra/react-toastify@v9.1.3...v11.0.5) --- updated-dependencies: - dependency-name: react-toastify dependency-version: 11.0.5 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix(toast): override width and progress bar as in design #000 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Airike Jaska <95303654+airikej@users.noreply.github.com>
1 parent eab0c33 commit 0650049

4 files changed

Lines changed: 32 additions & 30 deletions

File tree

package-lock.json

Lines changed: 7 additions & 16 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
@@ -53,7 +53,7 @@
5353
"react-dropzone": "^14.3.5",
5454
"react-select": "^5.10.1",
5555
"react-sticky-box": "2.0.5",
56-
"react-toastify": "^9.1.3",
56+
"react-toastify": "^11.0.5",
5757
"what-input": "^5.2.12",
5858
"yup": "^1.4.0"
5959
},
Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
1-
.tedi-toast__progress {
2-
background: var(--toast-progress-color) !important;
1+
:root,
2+
.Toastify__toast-theme--light {
3+
--toastify-color-progress-light: transparent !important;
34
}
45

5-
.tedi-toast__progress--success {
6-
--toast-progress-color: var(--alert-default-border-success);
7-
}
6+
.tedi-toast {
7+
display: block;
8+
width: 100%;
89

9-
.tedi-toast__progress--info {
10-
--toast-progress-color: var(--alert-default-border-info);
11-
}
10+
&__progress {
11+
background: var(--toast-progress-color) !important;
1212

13-
.tedi-toast__progress--danger {
14-
--toast-progress-color: var(--alert-default-border-danger);
15-
}
13+
&--success {
14+
--toast-progress-color: var(--alert-default-border-success);
15+
}
16+
17+
&--info {
18+
--toast-progress-color: var(--alert-default-border-info);
19+
}
20+
21+
&--danger {
22+
--toast-progress-color: var(--alert-default-border-danger);
23+
}
1624

17-
.tedi-toast__progress--warning {
18-
--toast-progress-color: var(--alert-default-border-warning);
25+
&--warning {
26+
--toast-progress-color: var(--alert-default-border-warning);
27+
}
28+
}
1929
}

src/tedi/components/notifications/toast/toast.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const sendNotification = (props: AlertProps, toastOptions?: ToastOptions)
3434
props.onClose?.();
3535
toast.dismiss(id);
3636
}}
37+
className={styles['tedi-toast']}
3738
>
3839
{props.children}
3940
</Alert>

0 commit comments

Comments
 (0)