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

[LoadingButton] Change LoadingButton prop pending to loading #23012

Closed
wants to merge 3 commits into from

Conversation

guillermaster
Copy link
Contributor

@guillermaster guillermaster commented Oct 12, 2020

This pull request renames the pending prop of the LoadingButton component to loading, as per issue

Closes #21593

@mui-pr-bot
Copy link

mui-pr-bot commented Oct 12, 2020

Details of bundle changes

Generated by 🚫 dangerJS against 5d5cd3d

@oliviertassinari
Copy link
Member

I'm not sure the related issue had reached enough maturity to go to the implementation phase.

@oliviertassinari

This comment has been minimized.

@mbrookes
Copy link
Member

I'm not sure the related issue had reached enough maturity to go to the implementation phase.

The issue is marked as "good to take"...

@oliviertassinari
Copy link
Member

@mbrookes True, why I reopened it. Do we want to move forward with this direction?

@oliviertassinari oliviertassinari added the component: button This is the name of the generic UI component, not the React module! label Oct 12, 2020
@mbrookes
Copy link
Member

🍿

@guillermaster
Copy link
Contributor Author

The pull request has been updated, the unit tests were fixed. The tests that were failing because the original code had an incorrect casing in these props: endIconLoadingEnd, startIconLoadingStart, and labelLoadingCenter.

@oliviertassinari
Copy link
Member

oliviertassinari commented Oct 15, 2020

OK, re-reading the linked issue a couple of weeks later, I think that we should go all-in on loading. The button isn't in a pending state that's the application or some task. However, the button displays a loader. So I think that that loading, even if not perfect is better, it better describes the state or the button (render a loader) which I think we should optimize for.

@oliviertassinari
Copy link
Member

oliviertassinari commented Oct 15, 2020

However, we didn't receive a clear approval in the team for going forward so closing both PR and issue. "No is temporary, yes is forever in open-source". @guillermaster thanks for spending time on it!

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

Successfully merging this pull request may close these issues.

[Button] Change LoadingButton prop pending to loading
5 participants