Skip to content

Commit 35adda0

Browse files
committed
tweaks to grid
1 parent d1f6991 commit 35adda0

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

docs/data/material/getting-started/templates/dashboard/getDashboardTheme.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ import { brand, getDesignTokens, gray, green, red } from './themePrimitives';
1010
export default function getDashboardTheme(mode) {
1111
return {
1212
...getDesignTokens(mode),
13-
mixins: {
14-
MuiDataGrid: {
15-
// Headers, and top & bottom fixed rows
16-
containerBackground: mode === 'dark' ? 'hsl(0, 0%, 0%)' : 'hsl(0, 0%, 100%)',
17-
},
18-
},
1913
components: {
2014
MuiButtonBase: {
2115
defaultProps: {
@@ -1010,6 +1004,7 @@ export default function getDashboardTheme(mode) {
10101004
root: ({ theme }) => ({
10111005
borderColor: theme.palette.divider,
10121006
}),
1007+
cell: ({ theme }) => ({ borderTopColor: theme.palette.divider }),
10131008
menu: ({ theme }) => ({
10141009
borderRadius: theme.shape.borderRadius,
10151010
border: `1px solid ${theme.palette.divider}`,
@@ -1026,7 +1021,8 @@ export default function getDashboardTheme(mode) {
10261021
}),
10271022
}),
10281023
row: ({ theme }) => ({
1029-
borderBottom: `1px solid ${theme.palette.divider}`,
1024+
// borderBottom: `1px solid ${theme.palette.divider}`,
1025+
'&:last-of-type': { borderBottom: `1px solid ${theme.palette.divider}` },
10301026
'&:hover': {
10311027
background: alpha(theme.palette.primary.main, 0.1),
10321028
},

docs/data/material/getting-started/templates/dashboard/getDashboardTheme.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ import { brand, getDesignTokens, gray, green, red } from './themePrimitives';
1414
export default function getDashboardTheme(mode: PaletteMode): ThemeOptions {
1515
return {
1616
...getDesignTokens(mode),
17-
mixins: {
18-
MuiDataGrid: {
19-
// Headers, and top & bottom fixed rows
20-
containerBackground: mode === 'dark' ? 'hsl(0, 0%, 0%)' : 'hsl(0, 0%, 100%)',
21-
},
22-
},
2317
components: {
2418
MuiButtonBase: {
2519
defaultProps: {
@@ -1014,6 +1008,8 @@ export default function getDashboardTheme(mode: PaletteMode): ThemeOptions {
10141008
root: ({ theme }) => ({
10151009
borderColor: theme.palette.divider,
10161010
}),
1011+
1012+
cell: ({ theme }) => ({ borderTopColor: theme.palette.divider }),
10171013
menu: ({ theme }) => ({
10181014
borderRadius: theme.shape.borderRadius,
10191015
border: `1px solid ${theme.palette.divider}`,
@@ -1030,7 +1026,8 @@ export default function getDashboardTheme(mode: PaletteMode): ThemeOptions {
10301026
}),
10311027
}),
10321028
row: ({ theme }) => ({
1033-
borderBottom: `1px solid ${theme.palette.divider}`,
1029+
// borderBottom: `1px solid ${theme.palette.divider}`,
1030+
'&:last-of-type': { borderBottom: `1px solid ${theme.palette.divider}` },
10341031
'&:hover': {
10351032
background: alpha(theme.palette.primary.main, 0.1),
10361033
},

0 commit comments

Comments
 (0)