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

[material-ui][Checkbox][Radio] Fix theme style overrides not working for different sizes #39377

Merged
merged 6 commits into from
Oct 20, 2023
Merged

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Oct 10, 2023

Description

Add missing override size styles to Checkbox and Radio components.

Closes #39303

Before: https://codesandbox.io/s/zen-vaughan-882wlf?file=/src/App.tsx
After: https://codesandbox.io/s/angry-agnesi-vw85h6


This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.

Co-authored-by: seunexplicit <48022904+seunexplicit@users.noreply.github.com>
@mui-bot
Copy link

mui-bot commented Oct 10, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 9c22d54

@danilo-leal danilo-leal changed the title MUI-39303 - [Checkbox][material-ui] Checkbox overrides is not working for sizes [material-ui][Checkbox] Overrides not working for different sizes Oct 10, 2023
@danilo-leal danilo-leal added component: checkbox This is the name of the generic UI component, not the React module! component: radio This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Oct 10, 2023
@gitstart gitstart marked this pull request as ready for review October 11, 2023 08:04
@gitstart gitstart marked this pull request as draft October 11, 2023 08:05
@gitstart gitstart marked this pull request as ready for review October 11, 2023 08:25
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Please add tests for both the Checkbox and Radio components. You can refer to this as an example: link.

@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work PR: needs test The pull request can't be merged labels Oct 11, 2023
@gitstart
Copy link
Contributor Author

@ZeeshanTamboli We have added the tests. Thanks for pointing that out.

@ZeeshanTamboli ZeeshanTamboli removed the PR: needs test The pull request can't be merged label Oct 14, 2023
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Looks great. Left a few comments.

packages/mui-material/src/Radio/Radio.js Outdated Show resolved Hide resolved
packages/mui-material/src/Radio/Radio.test.js Outdated Show resolved Hide resolved
packages/mui-material/src/Radio/Radio.test.js Outdated Show resolved Hide resolved
packages/mui-material/src/Radio/Radio.test.js Outdated Show resolved Hide resolved
gitstart and others added 2 commits October 20, 2023 08:59
Co-authored-by: seunexplicit <48022904+seunexplicit@users.noreply.github.com>
@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Checkbox] Overrides not working for different sizes [material-ui][Checkbox][Radio] Overrides not working for different sizes Oct 20, 2023
@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Checkbox][Radio] Overrides not working for different sizes [material-ui][Checkbox][Radio] Fix overrides not working for different sizes Oct 20, 2023
Signed-off-by: Zeeshan Tamboli <zeeshan.tamboli@gmail.com>
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

@gitstart I made one change. Now it looks good. 👍 Thanks!

@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Checkbox][Radio] Fix overrides not working for different sizes [material-ui][Checkbox][Radio] Fix theme style overrides not working for different sizes Oct 20, 2023
@ZeeshanTamboli ZeeshanTamboli merged commit 8bae182 into mui:master Oct 20, 2023
19 checks passed
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: checkbox This is the name of the generic UI component, not the React module! component: radio This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Checkbox][material-ui] Checkbox overrides is not working for sizes
4 participants