Skip to content

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

@MauritsLaubserConvenient

Description

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

Metadata

Metadata

Assignees

Labels

scope: systemSpecific to @mui/system.type: new featureExpand the scope of the product to solve a new problem.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions