I was attempting to customize a material UI element, specifically trying to increase the size of the icon.
Below is the style code I used:
export const Icon = styled(Box)({
color: "gray",
position: "relative",
"& .css-i4bv87-MuiSvgIcon-root": {
fontSize: "2rem",
},
"&:hover": {
color: "black",
},
});
In my App.js file:
<Icon>{icon}</Icon>
During development, the styling displayed correctly as expected. However, after deploying my app, I noticed that the styling
"& .css-i4bv87-MuiSvgIcon-root": {
fontSize: "2rem",
}
was not being applied in the live application.
Could someone provide assistance on this issue?