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

[Theme] Expand shape object to support borderTopLeftRadius, borderTopRightRadius, borderBottomLeftRadius, borderBottomRightRadius #45188

Open
MauritsLaubserConvenient opened this issue Feb 3, 2025 · 0 comments
Assignees
Labels
new feature New feature or request package: system Specific to @mui/system

Comments

@MauritsLaubserConvenient
Copy link

MauritsLaubserConvenient commented Feb 3, 2025

Summary

When adding a border radius to any element in my project with styles or sx borderRadius: 1 it will make border radius using the theme spacing that will result in 4px. This is not the case when I am setting the borderTopLeftRadius: 1 will not check the theme to get the corresponding spacing needed instead it applies 1px spacing. This is also the case for all other borderRadius variants.

I assume that the problem is comming that the Shape object only accepts borderRadius and not the other options.

Image

Image

Search keywords: BorderRadius, borderTopLeftRadius, borderTopRightRadius, borderBottomLeftRadius, borderBottomRightRadius, Shape object

@MauritsLaubserConvenient MauritsLaubserConvenient added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 3, 2025
@mnajdova mnajdova added new feature New feature or request package: system Specific to @mui/system labels Feb 3, 2025
@DiegoAndai DiegoAndai removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request package: system Specific to @mui/system
Projects
None yet
Development

No branches or pull requests

4 participants