styles supplied to the toast wrapper with either toastClassName in the ToastContainer or className in the toast function are not being rendered at all. Styles applied to the toast body through bodyClassName are rendered!
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:
I am working in a enterprise-scale application and can not provide a reproducible example from this, but essentially it's nextjs with tailwind, these are the deps:
Do you want to request a feature or report a bug?
Bug maybe?
What is the current behavior?
styles supplied to the toast wrapper with either
toastClassName
in theToastContainer
orclassName
in the toast function are not being rendered at all. Styles applied to the toast body throughbodyClassName
are rendered!If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:
I am working in a enterprise-scale application and can not provide a reproducible example from this, but essentially it's nextjs with tailwind, these are the deps:
_app.tsx excerpt
toast call in custom toast wrapper:
What is the expected behavior?
In this case i would like to see the background of the wrapper be red
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
see dependencies ^