-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't style cancel action without !important #321
Comments
Can reproduce when I try to style the |
I am seeing the same issue with the |
Seeing this issue as well, doesn't seem to be possible to style the |
Fixed the |
Describe the feature / bug 📝:
It's not currently possible to style some of the toast elements without using classes with !important. It looks to be due to the styles.css using higher priority styles than the classes being applied via
toastOptions.classNames
. This happens even withtoastOptions.unstyled = true
Steps to reproduce the bug 🔁:
.cancelbtn { background: red !important; }
Additional comments
It looks like unstyled doesn't completely unstyle the toast. Its also not possible to make the icon bigger than 16px without using important for the same reason. It might also be good to add an icon class so that we can apply styles to the
<div data-icon="">
div?The text was updated successfully, but these errors were encountered: