Skip to content

Commit 45d4c2d

Browse files
add elliptical border radius fallback
1 parent b774334 commit 45d4c2d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/builder-css-styles/border-radius

packages/builder-css-styles/border-radius/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ export function borderRadius(r: BorderRadiusManifest): CSSProperties {
5454
if (!r) {
5555
return;
5656
}
57-
5857
if (r.all) {
5958
if (isCircularRadius(r.all)) {
6059
return {
6160
"border-radius": px(r.all),
6261
};
6362
} else {
6463
console.warn("elliptical border radius not supported");
64+
return {
65+
"border-radius": px(r.all.x),
66+
};
6567
}
6668
} else {
6769
return {

0 commit comments

Comments
 (0)