I have a project where I'm making use of semantic-ui-react. The project is built with webpack and has the sassLoader enabled.
I have the following code in React component:
<Label className="test">
sample text
</Label>
I have the following code in a scss file that is loaded by this component:
.test {
color: red;
}
The sample text does not appear red. I know the two possible solutions - up the specificity or throw an important!
after the CSS rule. What I'd like to know is why this is happening. Why does this not happen when I use the native version of Semantic UI?
To assist, here's a screenshot from the inspector in Chrome: