Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[material-ui][InputLabel] Changed size prop value from normal to medium #45235

Merged
merged 13 commits into from
Feb 12, 2025

Conversation

perkrlsn
Copy link
Contributor

@perkrlsn perkrlsn commented Feb 7, 2025

From what I can tell the InputLabel is the only component with a 'small' | 'normal' size prop. Looking through the rest of components (albeit with a very rudimentary search) the standard seems to be 'small' | 'medium'.

This PR updates the propery for the InputLabel to match other components.

image

image

@ZeeshanTamboli ZeeshanTamboli changed the title [InputLabel] changed size prop from normal to medium [InputLabel] Changed size prop value from normal to medium Feb 9, 2025
@ZeeshanTamboli ZeeshanTamboli changed the title [InputLabel] Changed size prop value from normal to medium [material-ui][InputLabel] Changed size prop value from normal to medium Feb 9, 2025
@ZeeshanTamboli ZeeshanTamboli added package: material-ui Specific to @mui/material component: FormControl The React component breaking change labels Feb 9, 2025
@mui-bot
Copy link

mui-bot commented Feb 9, 2025

@ZeeshanTamboli ZeeshanTamboli added this to the Material UI v7 milestone Feb 9, 2025
@ZeeshanTamboli
Copy link
Member

@DiegoAndai @aarongarciah Should we include this breaking change in v7? A similar PR was opened before (#36188). It’s just a prop value change for consistency.

I've also added it to the v7 upgrade guide: https://deploy-preview-45235--material-ui.netlify.app/material-ui/migration/upgrade-to-v7/

What do you think? Worth including?

@aarongarciah
Copy link
Member

@ZeeshanTamboli +1 for being consistent.

@aarongarciah
Copy link
Member

@ZeeshanTamboli we should add a codemod, too

@ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli we should add a codemod, too

@aarongarciah Added.

Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

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

Looks good. Leaving the approval to @DiegoAndai since he's overseeing all of the v7 changes.

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

Hey @perkrlsn and @ZeeshanTamboli, thanks for working on this. Looks good, just one final thing. May I ask you to also include the following things in the InputLabel section of the upgrade guide:

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

@ZeeshanTamboli ZeeshanTamboli merged commit f266ae7 into mui:master Feb 12, 2025
22 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants