Skip to content
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

[StepLabel] Give more flexibility to the style of span surrounding label #10218

Merged
merged 4 commits into from Feb 9, 2018
Merged

[StepLabel] Give more flexibility to the style of span surrounding label #10218

merged 4 commits into from Feb 9, 2018

Conversation

seanchambo
Copy link
Contributor

This PR allows you to configure style of the span that surrounds the label as this is not currently possible and is limiting.

This fix also correctly applies the className passed to the StepLabel component, as currently the text classNameProp gets applied no matter what.

@seanchambo seanchambo changed the title Give more flexibility to the label of StepLabel [StepLabel] Give more flexibility to the style of span surrounding label Feb 9, 2018
@oliviertassinari oliviertassinari self-assigned this Feb 9, 2018
@oliviertassinari oliviertassinari added component: stepper This is the name of the generic UI component, not the React module! new feature New feature or request labels Feb 9, 2018
@@ -78,7 +85,7 @@ function StepLabel(props) {
/>
</span>
)}
<span>
<span className={classes.labelContainer}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been wondering about removing this span when optional isn't provided.
But didn't changed anything as I thought the extra span was worth not increasing the bundle size.
To be challenged.

@oliviertassinari oliviertassinari merged commit 93ca967 into mui:v1-beta Feb 9, 2018
@oliviertassinari
Copy link
Member

@seanchambo It's a great first-time pull request 👌🏻. Thank you for giving it a shot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: stepper This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants