Skip to content

Commit

Permalink
[system] Fix incorrect type of shape.borderRadius in theme (mui#34076)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli authored and Daniel Rabe committed Nov 29, 2022
1 parent 99766dc commit ade7aba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/mui-material/src/styles/createTheme.spec.ts
Expand Up @@ -182,3 +182,12 @@ const theme = createTheme();
},
});
}

{
createTheme({
shape: {
// @ts-expect-error invalid borderRadius string value in theme
borderRadius: '5px',
},
});
}
2 changes: 1 addition & 1 deletion packages/mui-system/src/createTheme/shape.d.ts
@@ -1,5 +1,5 @@
export interface Shape {
borderRadius: number | string;
borderRadius: number;
}

export type ShapeOptions = Partial<Shape>;
Expand Down

0 comments on commit ade7aba

Please sign in to comment.