Skip to content

Commit

Permalink
Ensure variant classes are passed to SnackbarContent (#451)
Browse files Browse the repository at this point in the history
* Fixes #440 - Ensure variant classes are passed to snackbar content

* Update changelog

* 2.0.3
  • Loading branch information
iamhosseindhv authored Oct 31, 2021
1 parent 642958b commit bb06c67
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Thanks to all contributers who improved notistack by opening an issue/PR.

### `[email protected]`
###### Oct 31, 2021
* **@h0tw4t3r** Ensure `variant` classes are passed to SnackbarContent [#451](https://github.com/iamhosseindhv/notistack/pull/451)

<br />

### `[email protected]`
###### 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)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/SnackbarItem/SnackbarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ const SnackbarItem: React.FC<SnackbarItemProps> = ({ classes: propClasses, ...pr
classes.contentRoot,
{ [classes.lessPadding]: !hideIconVariant && icon },
classes[transformer.toVariant(variant)],
propClasses[transformer.toVariant(variant)],
otherClassName,
singleClassName,
)}
Expand Down

0 comments on commit bb06c67

Please sign in to comment.