-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Feature Request] StepIcon should be more customizable #11329
Comments
@lucas-viewup Thanks for opening this issue. I'm not sure to fully understand your problem. What are you trying to achieve precisely? This would help me evaluate the best solution. |
Thanks for feedback, @oliviertassinari! The problem I'm trying to solve is style the StepIcon without modify the behaviour of icon and without change the icon. The component is ok, the only problem is I can't access the props (props of StepIcon) using the StepLabel component. I think a good solution for this is add a property to modify these properties. This solution only will bind two wires that are well implemented, allowing the use of CSS API of StepIcon through StepLabel. Take this example:
|
Ok, I see different alternatives:
|
The first option is good but you will be restricted to the root of the StepIcon. I guess the 2nd option is better, because you will only bind that already exists, you will bind the StepIcon to the StepLabel, all the logic already implemented in StepIcon will be available in StepLabel through StepIconProps as you mentioned. The 3rd option already exists (icon property of StepLabel), the problem is having a prop to pass the component is that you will lost the behavior of default icon (the default icon property of StepIcon renders the index of the step and another props like alternativeLabel, etc, the custom one doesn't). |
I'm fine with option two too :). |
Hi, isn't this possible with "StepIconProps": |
Hello, folks!
I'm having a problem in customize the component StepIcon inside of StepLabel specifically in line 86, component is like this in the last version of material-ui-next (v1.0.0-beta.47):
This property didn't permit edit the properties of the icon. Ok, but you will tell me that I can create a custom Icon but I will loss access to the props that is passed through Step, so, my proposal is do something like:
So when you use StepLabel would be:
Regards,
The text was updated successfully, but these errors were encountered: