From bb06c6713d42e807594b1962dfb5fa1ec72a55fb Mon Sep 17 00:00:00 2001 From: Hossein Dehnokhalaji Date: Sun, 31 Oct 2021 03:49:11 +0000 Subject: [PATCH] Ensure variant classes are passed to SnackbarContent (#451) * Fixes #440 - Ensure variant classes are passed to snackbar content * Update changelog * 2.0.3 --- CHANGELOG.md | 6 ++++++ package-lock.json | 2 +- package.json | 2 +- src/SnackbarItem/SnackbarItem.tsx | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a3dd023..6b2a2890 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ Thanks to all contributers who improved notistack by opening an issue/PR. +### `notistack@2.0.3` +###### Oct 31, 2021 +* **@h0tw4t3r** Ensure `variant` classes are passed to SnackbarContent [#451](https://github.com/iamhosseindhv/notistack/pull/451) + +
+ ### `notistack@2.0.2` ###### Sep 26, 2021 * **@hugofpsilva** **@ramosbugs** **@joemaffei** Publish material-ui v5 compatible version as `latest` instead of `next` [#437](https://github.com/iamhosseindhv/notistack/pull/437) diff --git a/package-lock.json b/package-lock.json index 480ceb67..de696a38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "notistack", - "version": "2.0.2", + "version": "2.0.3", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 207dd354..7d5ccd03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notistack", - "version": "2.0.2", + "version": "2.0.3", "description": "Highly customizable notification snackbars (toasts) that can be stacked on top of each other", "main": "dist/index.js", "module": "dist/notistack.esm.js", diff --git a/src/SnackbarItem/SnackbarItem.tsx b/src/SnackbarItem/SnackbarItem.tsx index 9f07a74e..e6902c03 100644 --- a/src/SnackbarItem/SnackbarItem.tsx +++ b/src/SnackbarItem/SnackbarItem.tsx @@ -246,6 +246,7 @@ const SnackbarItem: React.FC = ({ classes: propClasses, ...pr classes.contentRoot, { [classes.lessPadding]: !hideIconVariant && icon }, classes[transformer.toVariant(variant)], + propClasses[transformer.toVariant(variant)], otherClassName, singleClassName, )}