I recently updated the Material UI version in my project from 0.20 to v4.9. I have successfully changed all the imports to @material-ui/core and my app is compiling without any issues. However, I am facing a problem with the styling. Previously, I did not use styles in every component but instead used a global CSS file that I imported in my main.js. Now, for each element and component, I have added the style directly within the file. The problem arises with the default styling of Material UI components after the update. For example, the Chip component I was using had a classname like this:
.euro-chip-default {
background-color: #FFF !important;
border: 1px solid #E9EEF1 !important;
}
Unfortunately, after updating the version, this classname no longer works properly and now my Chip looks terrible. I have searched through the documentation but cannot find a solution. They suggest using withStyles, which would make my components too large. Is there anything specific I should do when it comes to using CSS in an updated Material UI project? Any help is appreciated! Thanks!