I'm currently exploring the use of CSS-in-JS classes from this specific response in conjunction with a Material UI component within my React project. In order to override the CSS set by Bootstrap, I've decided to utilize the !important modifier. However, I am facing challenges as I have only used this in .css files previously and am unsure of how to implement it in CSS-in-JS. The styles object that I intend to pass into the Material-UI withStyles
function is structured as follows. How can I incorporate the !important rule to the fontSize attribute? I've attempted using 30 !important
and other variations without success.
Thank you in advance.
const styles = {
labelRoot: {
fontSize: 30
}
}