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] Allow StepIcon customization #11446

Merged
merged 3 commits into from
May 20, 2018
Merged

Conversation

jargot
Copy link
Contributor

@jargot jargot commented May 17, 2018

Hi,

First pull-request ever, please send constructive criticism ;)

This follows #11329 and option 2 of what was suggested:

  • Allows to have a stepIconProps property to be passed to its child

Closes #11329

@@ -15,6 +15,7 @@ export interface StepLabelProps
last?: boolean;
optional?: React.ReactNode;
orientation?: Orientation;
stepIconProps?: object;
Copy link
Member

Choose a reason for hiding this comment

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

I believe first letter should be upperCase

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, you're right...I followed the convention on imgProps but img is not a React component hence the lower camel case.

I'll update my PR tomorrow.

@oliviertassinari oliviertassinari self-assigned this May 19, 2018
@oliviertassinari oliviertassinari changed the title [StepLabel] Feature request #11329 [StepLabel] Allow StepIcon customization May 19, 2018
@oliviertassinari oliviertassinari added new feature New feature or request component: stepper This is the name of the generic UI component, not the React module! labels May 19, 2018
@oliviertassinari oliviertassinari removed their assignment May 19, 2018
@oliviertassinari oliviertassinari merged commit 732e8cc into mui:master May 20, 2018
@oliviertassinari
Copy link
Member

Thanks

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.

3 participants