-
-
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
[material-ui][IconButton] Set default loading to null
#45057
[material-ui][IconButton] Set default loading to null
#45057
Conversation
{typeof loading === 'boolean' && ( | ||
// use plain HTML span to minimize the runtime overhead | ||
<span className={classes.loadingWrapper} style={{ display: 'contents' }}> | ||
<IconButtonLoadingIndicator className={classes.loadingIndicator} ownerState={ownerState}> | ||
{loading && loadingIndicator} | ||
</IconButtonLoadingIndicator> | ||
</span> | ||
)} |
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.
Do the same as Button
Netlify deploy previewhttps://deploy-preview-45057--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
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.
I think adding a test is worth it.
Added a test to check that no element is rendered when I don't think it's worth to test the loading wrapper as it's an implementation detail. The progressbar test is already enough. |
closes #45048