Heh, styled-components.com advanced page had a hack that I hadn't thought of but seems obvious in hindsite:
.red-bg.red-bg {
background-color: red;
}
Like, make sure it REALLY is read even if there was a .green-bg class defined as well.
Well, beats !important, I guess?
No comments:
Post a Comment