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

[button] Add missing customize points for span #43436

Merged
merged 5 commits into from
Aug 26, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Aug 25, 2024

The objective is to fix the regression introduced by #35198 that we noticed on the store:

SCR-20240825-sxgx

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:

Also, to note that this span should have had the API to customize it, I'm adding this at the same time.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! regression A bug, but worse labels Aug 25, 2024
@mui-bot
Copy link

mui-bot commented Aug 25, 2024

Netlify deploy preview

https://deploy-preview-43436--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 0b7146e

@oliviertassinari oliviertassinari added this to the Material UI: v6 milestone Aug 25, 2024
Comment on lines +204 to +205
},
})({
Copy link
Member Author

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

Copy link
Member

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.

Copy link
Member Author

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.

@siriwatknp siriwatknp added the customization: slot Component's slot customizability label Aug 26, 2024
@mnajdova mnajdova merged commit 4a85313 into mui:next Aug 26, 2024
22 checks passed
@oliviertassinari oliviertassinari deleted the loading-button-fix-loader branch August 26, 2024 08:57
Comment on lines +204 to +205
},
})({
Copy link
Member Author

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,
Copy link
Member Author

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

@oliviertassinari
Copy link
Member Author

Confirmed this change solved the regression: https://github.com/mui/mui-private/pull/560.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! customization: slot Component's slot customizability regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants