question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Styles defined by classes seem to be overridden by cx

See original GitHub issue

If 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
prmichaelsencommented, Apr 25, 2018

Ok, I see that you are correct. Thank you again for the help.

0reactions
fkhadracommented, Apr 25, 2018

Hey @prmichaelsen,

Thanks for the feedback. The file style.css was loaded before ReactToastify.css, you need to load ReactToastify.css first:

import 'react-toastify/dist/ReactToastify.css';
import './style.css';

Edit nnkpxor770

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found