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

[Joy][button] Replace start/endIcon prop with start/endDecorator #34288

Merged
merged 9 commits into from Sep 15, 2022

Conversation

hbjORbj
Copy link
Member

@hbjORbj hbjORbj commented Sep 12, 2022

BREAKING CHANGE: replace start/endIcon with start/endDecorator.

// before
<Button startIcon={...} endIcon={...} />

// after
<Button startDecorator={...} endDecorator={...} />

Closes #34242

@hbjORbj hbjORbj changed the title [Joy][button] Replace start/endIcon prop with start/endDecorator [Joy][button] Replace start/endIcon prop with start/endDecorator Sep 12, 2022
@hbjORbj hbjORbj added breaking change component: button This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy labels Sep 12, 2022
@hbjORbj hbjORbj self-assigned this Sep 12, 2022
@mui-bot
Copy link

mui-bot commented Sep 12, 2022

Details of bundle changes

Generated by 🚫 dangerJS against f9c50b5

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hbjORbj Thanks, Benny. Note that Argos should not detect any changes.

@hbjORbj hbjORbj requested review from siriwatknp and danilo-leal and removed request for mnajdova and michaldudak September 13, 2022 12:24
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the start/endDecorator slots to button in extendTheme.spec.ts as well? I think I missed it.

Copy link
Contributor

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me!

@hbjORbj
Copy link
Member Author

hbjORbj commented Sep 15, 2022

Can you add the start/endDecorator slots to button in extendTheme.spec.ts as well? I think I missed it.

@siriwatknp Done!

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩 Awesome @hbjORbj

@hbjORbj hbjORbj merged commit c39faa6 into mui:master Sep 15, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: button This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Joy][button] Replace start/endIcon prop with start/endDecorator
4 participants