I use opacity: 100%
or opacity: 40%
in some SCSS code in my React app.
Works find in development mode.
But when I build, all the elements have their opacity set to 1%
!!!
I've worked around this easily by using rgba colors and setting opacity there.
But, what is up with this???
Sass never changes property values based on property names (see this example). I'm guessing you're using cssnano as well, in which case you're running into this bug for which a fix will be released soon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With