Styles defined by classes seem to be overridden by cx
See original GitHub issueIf I create my toast like so:
return toast('toast', {
className: 'my-toast',
});
with scss
.my-toast {
border-radius: 4;
}
The final resulting Toast has my styles applied and then the Toastify__toast
style applied on top of that.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to Override CSS Styles - W3docs
Here, the Class selector overrode the ID selector because it was the last used one. An ID selector only takes precedence over a...
Read more >Composition - Emotion
Composition is one of the most powerful and useful patterns in Emotion. You can compose styles together by interpolating value returned from css...
Read more >Secure Coding Guidelines for Java SE - Oracle
Design classes and methods for inheritance or declare them final [6]. Left non-final, a class or method may be overridden in a way...
Read more >Subclasses and Inheritance (Java in a Nutshell)
When a class defines an instance method using the same name, return type, and parameters as a method in its superclass, that method...
Read more >gMock Cookbook | GoogleTest
Mock classes are defined as normal classes, using the MOCK_METHOD macro to generate ... This may seem like a lot of hassle, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I see that you are correct. Thank you again for the help.
Hey @prmichaelsen,
Thanks for the feedback. The file
style.css
was loaded beforeReactToastify.css
, you need to loadReactToastify.css
first: