-
Notifications
You must be signed in to change notification settings - Fork 130
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
Allow IconButton to receive loading props #1570
Conversation
Hey @vascofg, Thanks! |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: cc32272 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to me!
Codecov Report
@@ Coverage Diff @@
## main #1570 +/- ##
=======================================
Coverage 92.71% 92.71%
=======================================
Files 194 194
Lines 4024 4024
Branches 1262 1262
=======================================
Hits 3731 3731
Misses 274 274
Partials 19 19
|
Hey @vascofg, thanks for the PR! Can you explain what you're trying to achieve a bit more? Since the prop types extend |
Hey @robinmetral, yes it is supported and it works, but generates a typescript error because the So my PR does not change any implementation data, just updates the types. |
…eat/is-loading-icon-button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah my bad, somehow I misread this as removing the loading state 🤦 makes sense to me, let's
@vascofg just tweaked the changeset a bit, I'll let you press the big green button and then handle the new version release 🙂 |
Purpose
Allow IconButton to display a loading state.
Approach and changes
Update types to allow
isLoading
andloadingLabel
props forIconButton
.The behaviour already works from the parent
Button
component.Definition of done