[Stepper] Cannot customize StepIcon via rule name for style override
See original GitHub issue- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
The StepIcon’s completed property does not have the override style applied.
Expected Behavior 🤔
The StepIcon’s completed property should have the override style applied. For example, the icon color should be green on completed={true}
if the theme override has color: "green"
.
Steps to Reproduce 🕹
https://codesandbox.io/s/epic-hawking-ijkyj?file=/src/App.tsx
MuiStepIcon: {
styleOverrides: {
completed: {
color: "green",
},
},
},
Using the rule name of the component’s styleOverrides property in a custom theme is not applied.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top Results From Across the Web
[Stepper] Cannot customize StepIcon via rule name for style ...
The StepIcon's completed property should have the override style applied. For example, the icon color should be green on completed={true} if the ...
Read more >Override the default icon from mat-stepper angular material
I've created an example where the default edit icon is changed: Stackblitz. Move your definition of the changed edit icon outside of the ......
Read more >StepIcon API - Material UI - MUI
You can override the style of the component using one of these customization options: With a global class name. With a rule name...
Read more >React MUI StepIcon API - GeeksforGeeks
Material-UI is a UI library providing predefined robust and customizable components for React for easier web development. The MUI design is ...
Read more >How to customize the icons of a Stepper in Material-UI React
We can customize the icon of each step in a Stepper of Material-UI. Each step icons can be customized using a simple trick....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Summary of this issue
to customize
completed
state for StepIcon, use pseudo classstepIconClasses.completed
or'Mui-completed'
.@siriwatknp That fix doesn’t seem to be working. Based on the Dialog implementation, I think it should be like this: