How to use custom color for step label string
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
I wanna use Stepper in a black background. Accordingly, need to change the step label string from the primary color (grey) to a light one (white). I applied a custom style to StepLabel as below:
const ColorlibStepLabel = styled(StepLabel)(() => ({
[`&.${stepLabelClasses.active}`]: {
[`& .${stepLabelClasses.label}`]: {
color: '#fff',
},
},
[`&.${stepLabelClasses.completed}`]: {
[`& .${stepLabelClasses.label}`]: {
color: '#fff',
},
},
[`& .${stepLabelClasses.label}`]: {
color: 'rgb(255, 255, 255, 0.3)',
},
}));
After this, I was able to get white color for disabled state but not for completed and active state.
I’d like to know the correct way how to change the color for completed and active step label string.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to use custom color for step label string #30887 - GitHub
I wanna use Stepper in a black background. Accordingly, need to change the step label string from the primary color (grey) to a...
Read more >How to use custom color for step label string in Material UI
I wanna use Stepper in a black background. Accordingly, need to change the step label string from the primary color (grey) to a...
Read more >How to use custom color for step label string in Material UI ...
[Solved]-How to use custom color for step label string in Material UI-Reactjs. Search. score:0. const ColorlibStepLabel = styled(StepLabel)(() => ({ [`& .
Read more >StepLabel API - Material UI - MUI
API reference docs for the React StepLabel component. Learn about the props, CSS, and other APIs of this exported module.
Read more >Stepper - Angular Material
Use this to notify components if the labels have changed after initialization. completedLabel: string ... Theme color for all of the steps in...
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
hey @euj1n0ng, i think this will work:
working here: https://codesandbox.io/s/busy-mccarthy-x403u?file=/src/Demo.tsx:1494-1740
@amanzrx4 , yes, it works like a charm! Thank you so much. 😍