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

[system] Fix incorrect type of shape.borderRadius in theme #34076

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Aug 26, 2022

Fixes #32960

Since we multiply sx prop's borderRadius value with the theme value when the sx borderRadius value is a number, the theme shape.borderRadius should not support string type.

Also related to #34067 to some extent.

@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work typescript package: system Specific to @mui/system labels Aug 26, 2022
@mui-bot
Copy link

mui-bot commented Aug 26, 2022

No bundle size changes

Generated by 🚫 dangerJS against 14f0c33

@ZeeshanTamboli ZeeshanTamboli marked this pull request as ready for review August 26, 2022 07:19
@ZeeshanTamboli ZeeshanTamboli changed the title [system] Fix incorrect type for shape.borderRadius in theme [system] Fix incorrect type of shape.borderRadius in theme Aug 26, 2022
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.

👍 LGTM

@ZeeshanTamboli ZeeshanTamboli merged commit 89ecedc into mui:master Sep 20, 2022
@ZeeshanTamboli ZeeshanTamboli deleted the issue/32960-incorrect-typing-shape-border-radius branch September 20, 2022 12:07
alexfauquette pushed a commit to alexfauquette/material-ui that referenced this pull request Oct 14, 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
bug 🐛 Something doesn't work package: system Specific to @mui/system typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect typing for Shape['borderRadius']
3 participants