Currently, I am working on customizing the material-ui tooltip and specifically need to adjust the margin for the tooltipPlacementTop
class:
const useStyles = makeStyles(theme => ({
tooltipPlacementTop: {
margin: '4px 0'
},
});
....
<Tooltip classes={{ tooltipPlacementTop: classes.tooltipPlacementTop }} >
However, my current approach seems to override all default styles for this class. Is there a way to maintain the original material-ui styles while only modifying the specific one I require?
Upon further investigation, it appears that the issue stemmed from inadvertently overriding the classes property within my custom component that utilizes material-ui tooltip...
Issue resolved - Closing the question