Skip to content

Commit

Permalink
fix radius
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Feb 27, 2023
1 parent 7950b42 commit f94a4a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ export const GridRootStyles = styled('div', {
],
})<{ ownerState: OwnerState }>(({ theme }) => {
const borderColor = getBorderColor(theme);
const radius = theme.shape.borderRadius;

const gridStyle: CSSInterpolation = {
'--DataGrid-radius': theme.shape.borderRadius,
'--DataGrid-radius': typeof radius === 'number' ? `${radius}px` : radius,
'--DataGrid-headWeight': theme.typography.fontWeightMedium,
'--DataGrid-overlayBackground': theme.vars
? `rgba(${theme.vars.palette.background.defaultChannel} / ${theme.vars.palette.action.disabledOpacity})`
Expand Down

0 comments on commit f94a4a1

Please sign in to comment.