-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to apply a custom className to StepPositionIcon? #12001
Comments
@bousejin The |
@oliviertassinari Thank you so much. I have some card inside a stepper that should be ordered, but I want the StepIcon background to be of a white color and the number in it to be of a blue one. <MuiThemeProvider theme={theme}>
<Stepper activeStep={activeStep} orientation="vertical">
{cards.map((prop, key) => {
return (
<Step key={key}>
<StepLabel active></StepLabel>
<StepContent TransitionComponent="None">
<Card className={classes.card}>
<div className={classes.details}>
<CardMedia
className={
classes.cover + " " +
classes.imgRaised + " " +
classes.imgRounded + " " +
classes.imgFluid
}
image={prop.image}
title={prop.title}
/>
<CardContent className={classes.content}>
<Typography variant="subheading">
<a href={prop.link} className={classes.a} target="_blank">
{prop.title}
</a>
</Typography>
<Typography variant="body1">
{prop.authors}
</Typography>
<Typography variant="body1" color="textSecondary">
{prop.venue}
</Typography>
</CardContent>
</div>
<div className={classes.controls}>
<ExpansionPanel>
<ExpansionPanelSummary
className={classes.abstract}
expandIcon={<ExpandMoreIcon className={classes.icon} />}>
<a className={classes.a + " " + classes.heading}>Abstract</a>
</ExpansionPanelSummary>
<ExpansionPanelDetails>
<Typography>
{prop.abstract}
</Typography>
</ExpansionPanelDetails>
</ExpansionPanel>
</div>
</Card>
</StepContent>
</Step>
);
})}
</Stepper>
</MuiThemeProvider> |
@bousejin Alright, I think that the best approach to fix the issue is to remove the |
@oliviertassinari Thanks again. I want but my knowledge of react is at the beginner level:) After looking at the StepIcon and StepPositionIcon components, I've merged these components like below, but didn't test it:(
|
@bousejin This looks good. Do you want to submit a pull request? I will help with the missing parts. |
@oliviertassinari I submitted a pull request. |
I am trying to customize a vertical stepper like this:
But I cannot override StepPositionIcon properties like:
I want to apply a custom className to StepPositionIcon but don't know where to apply this change? in Stepper, Step or StepLabel?
Your Environment
The text was updated successfully, but these errors were encountered: