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
When I try to style it in the following ways, nothing works:
<Toaster
position="top-right"
theme="dark"
richColors
toastOptions={{
classNames: {
actionButton: 'bg-green-900 text-white',
},
}}
/>
```
This api also seems bad because you can't specify specific styles for each variant.
Which led me to try styling like this:
toast.success(title, {
description: message,
duration,
action,
classNames: {
actionButton: 'group-[.toast]:bg-green-300 group-[.toast]:text-green-900',
},
});
toast.success(title, {
description: message,
duration,
action,
classNames: {
actionButton: 'bg-green-300 text-green-900',
},
});
But in the end the toast still had a white button. Has anyone else encountered this?
<img width="449" alt="image" src="https://github.com/user-attachments/assets/666006c2-245c-4a34-8f40-02259997e89b">
The text was updated successfully, but these errors were encountered:
williamlmao
changed the title
richColors does not style action buttonrichColors does not style action button and other styling methods do not work
Aug 1, 2024
Results in the following toast:
When I try to style it in the following ways, nothing works:
The text was updated successfully, but these errors were encountered: