Skip to content

[LoadingButton] Change LoadingButton prop pending to loading#23012

Closed
guillermaster wants to merge 3 commits intomui:nextfrom
guillermaster:next
Closed

[LoadingButton] Change LoadingButton prop pending to loading#23012
guillermaster wants to merge 3 commits intomui:nextfrom
guillermaster:next

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 scope: button Changes related to the button. 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 oliviertassinari added the breaking change Introduces changes that are not backward compatible. label Oct 13, 2020
@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 Introduces changes that are not backward compatible. scope: button Changes related to the button.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Button] Change LoadingButton prop pending to loading

5 participants