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-ui][Button] Fix button size being a decorator #39529

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Oct 20, 2023

closes #39515

This is a regression from #38696 because of the increasing of padding-block. I'm fixing it by introducing an internal CSS variable to the button so that the Input can control it.

Before

image

After

image

https://codesandbox.io/s/jolly-pine-qf29yc

I use this opportunity to do the same with Select and Textarea.

https://app.argos-ci.com/mui/material-ui/builds/19946/62078137


@siriwatknp siriwatknp added component: button This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy labels Oct 20, 2023
@mui-bot
Copy link

mui-bot commented Oct 20, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 553cad1

@siriwatknp siriwatknp added the regression A bug, but worse label Oct 20, 2023
Copy link
Contributor

@zanivan zanivan left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@siriwatknp siriwatknp merged commit 1fd4dff into mui:master Oct 23, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[joy-ui][input] Button as decorators no longer adjust to the input field
3 participants