CSS modules not being applied to element
Unanswered
Harlequin posted this in #help-forum
HarlequinOP
Hi, i am using CSS modules which i import into a layout. So here we go:
Now the css is getting loaded according to developer console in chrome but the <p> element just doesnt get the class applied. In fact the class attribute is completely missing.
What am i making wrong here?
import styles from "./airplane.module.css"
...
<p className={styles.SVGBGAirplane}>sdfs</p>Now the css is getting loaded according to developer console in chrome but the <p> element just doesnt get the class applied. In fact the class attribute is completely missing.
What am i making wrong here?
1 Reply
HarlequinOP
spotted the problem. className was with a "-" and autocomplete removed it.