I am learning react and material-ui and trying to update the colour of the font in the DialogTitle component. This link gave a solution of overriding the dialog root class (code listed below). How do I override the root class for DialogTitle so that I can change the style of the title?
root: {
backgroundColor: theme.palette.primary.main,
'& h6': {
color: 'red'
}
}
Found a solution.
<DialogTitle
disableTypography
id="alert-dialog-title"
style={{ backgroundColor: 'navy', color: 'white' }}
>
<Typography variant="h6">{ErrorBoundary.title}</Typography>
</DialogTitle>
