-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[button] Add missing customize points for span #43436
[button] Add missing customize points for span #43436
Conversation
Netlify deploy previewhttps://deploy-preview-43436--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
2092c99
to
6b6a620
Compare
}, | ||
})({ |
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, I guess I forgot #43372
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.
We are not using it if there it is not a callback, but it is missing in the other slots, I am adding it.
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 right, ok, it's the opposite, makes sense.
}, | ||
})({ |
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 right, ok, it's the opposite, makes sense.
import { | ||
capitalize, | ||
unstable_useId as useId, | ||
unstable_memoTheme as memoTheme, |
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'm confused by this, issue created #43440
Confirmed this change solved the regression: https://github.com/mui/mui-private/pull/560. |
The objective is to fix the regression introduced by #35198 that we noticed on the store:
Origin: https://github.com/mui/mui-private/pull/511. Reproduction: https://codesandbox.io/p/sandbox/affectionate-night-64fljj?workspaceId=836800c1-9711-491c-a89b-3ac24cbd8cd8
I have tried in #43400 to remove the
<span>
, but it didn't work in production. Instead, we can use what Material UI v4 was using to make the span more transparent:material-ui/packages/material-ui/src/Button/Button.js
Line 37 in cd0884f
Also, to note that this span should have had the API to customize it, I'm adding this at the same time.