Currently, I'm working on customizing the ToggleButton in order to change the default color when it is selected. However, my attempts have been fruitless so far.
const customizeStyles = makeStyles((theme) => ({
toggleButtonSelected: {
"background-color": "red"
}
}))
.......
<ToggleButtonGroup exclusive>
<ToggleButton
classes={{ selected: customizeStyles.toggleButtonSelected }}
value="a" >
Button A
</ToggleButton>
<ToggleButton
classes={{ selected: customizeStyles.toggleButtonSelected }}
value="b">
Button B
</ToggleButton>
</ToggleButtonGroup>