I am trying to customize the text color (represented by an SVG Icon) in Material UI StepIcon for active and completed steps only. Currently, I have successfully changed the icon color for those steps. This is how my custom MuiTheme appears:
export default createMuiTheme({
overrides: {
MuiStepIcon: {
root: {
'&$active': {
color: styles.myGreen,
},
'&$completed': {
color: styles.myGreen,
},
},
}
},
});
The entire stepper component looks like this:
https://i.sstatic.net/3a1Tw.png
Now, I want to change the color of the tick to gray for completed steps and the color of the number two to gray for the currently active step, while keeping inactive steps unchanged with a white fill.
Despite trying to modify the fill property as suggested in the official documentation, it does not seem to work as expected, showing a white fill in the developer inspector.
I am looking to apply this styling globally across my entire application. Any suggestions or solutions for achieving this?