You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Mind the CSS class application sequence, I guess. I was debugging the same behavior, and the min.css classes are applied after the className API ones. Try to use the ! prefix to make it important.
I wish there was better integration with Tailwind and data-states usage instead of the context approach.
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 ^
The text was updated successfully, but these errors were encountered: