[StepIcon] Cannot override active color
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior šÆ
Hey,
Iām currently trying to override the StepIcon active color at theme level, following the examples Iāve found in the documentation, but itās not working for me. Overriding the styles for the text in the StepIcon is working though.
Thank you for you help.
Expected behavior š¤
Iām expecting the color of the active step icon to change to red.
Steps to reproduce š¹
Steps:
- Go to https://codesandbox.io/s/stepiconcolor-dixvx
- There, Iāve tried to change the color of the icon in 2 ways, but none of them works.
Context š¦
Iām trying to migrate a theme from v4 to v5.
Your environment š
`npx @mui/envinfo`
System:
OS: Windows 10 10.0.19042
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: Not Found
Edge: Spartan (44.19041.1266.0), Chromium (95.0.1020.53)
npmPackages:
@emotion/react: ^11.6.0 => 11.6.0
@emotion/styled: ^11.6.0 => 11.6.0
@mui/base: 5.0.0-alpha.55
@mui/icons-material: ^5.1.1 => 5.1.1
@mui/lab: ^5.0.0-alpha.55 => 5.0.0-alpha.55
@mui/material: ^5.1.1 => 5.1.1
@mui/private-theming: 5.1.1
@mui/styled-engine: 5.1.1
@mui/styles: ^5.1.1 => 5.1.1
@mui/system: 5.1.1
@mui/types: 7.1.0
@mui/utils: 5.1.1
@types/react: 17.0.35
react: ^17.0.2 => 17.0.2
react-dom: ^17.0.2 => 17.0.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
mui/material-ui - [StepIcon] Cannot override active color - GitHub
Hey,. I'm currently trying to override the StepIcon active color at theme level, following the examples I've found in the documentation, butĀ ...
Read more >Unable to update stepper active icon color for material ui
I'm using react material ui and having issues changing the color for the following highlight class. enter image description here. CSS stepIcon:Ā ...
Read more >How to change the Stepper colors in Material-UI React
The color of the stepper bullets can't be changed using any props directly. We can change it by using a theme. In this...
Read more >StepIcon API - Material UI - MUI
Override or extend the styles applied to the component. See CSS API below for more details. completed, bool, false. Mark the step as...
Read more >React MUI StepIcon API - GeeksforGeeks
sx (Array<func/object/bool> func/object): The system prop allows defining system overrides as well as additional CSS styles. active (bool): IfĀ ...
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
Thanks for pointing this out, @abrezuica! Iāve just prepared a PR with a fix.
Omg, thanks a lot. Iāve tried it without the space but not in this combination it seems. However, I wouldnāt close this issue for the moment, since I think the documentation for StepIcon global classnames should be updated?