Currently, I am working with material-ui in a react project. In one of my components, I have incorporated a simple contained button:
<Button variant='contained' color='primary'> Edit</Button>
However, despite setting it as a contained button in the code, it does not appear that way on the interface. You can see how it looks in this screenshot here.
After delving deeper into the issue, I discovered that the .MuiButton-containedPrimary style is being overridden by the .MuiButtonBase-root styling, as illustrated in this screenshot captured from chrome dev tools.
If anyone has any suggestions or solutions to address this problem, I would greatly appreciate your guidance.