score:0

you should use the !important keyboard in the css style.

const usestyles = makestyles((theme) => ({
 buttonstyle: {
  backgroundcolor: "#add8e6 !important"
 }
}));

score:0

it's actually a lot simpler. create an arbitrary style object:

const style = {
  backgroundcolor: "#add8e6"
};

apply it to your button:

<button style={style}>failed submit</button>

sandbox: https://codesandbox.io/s/funny-poitras-e1s3y?file=/src/app.js

score:0

if you don't want to use the material-ui override system, you can override by using styled-components styled-components, which is much simpler


Related Query

More Query from same tag