Adjusted padding and borders for a more aesthetic look and feel for the vertical tabs.
This commit is contained in:
1 parent
94045f1164
commit
71763f4b66
1 file changed
+29
-22
@@ -384,31 +384,38 @@ const baseTheme = (palette) => ({
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
variants: [
|
variants: [
|
||||||
{
|
{
|
||||||
props: { orientation: 'vertical' },
|
props: { orientation: 'vertical' },
|
||||||
style: ({ theme }) => ({
|
style: ({ theme }) => ({
|
||||||
alignItems: 'flex-start',
|
alignItems: 'flex-start',
|
||||||
padding: theme.spacing(2),
|
padding: `${theme.spacing(1)}px ${theme.spacing(2)}px ${theme.spacing(1)}px ${theme.spacing(6)}px`,
|
||||||
color: theme.palette.primary.contrastText,
|
minHeight: theme.spacing(12),
|
||||||
backgroundColor: theme.palette.primary.main,
|
|
||||||
border: 'none',
|
|
||||||
borderBottom: 'none',
|
|
||||||
borderRight: 'none',
|
|
||||||
'&.Mui-selected': {
|
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
backgroundColor: theme.palette.tertiary.main,
|
backgroundColor: theme.palette.primary.main,
|
||||||
opacity: 1,
|
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderBottom: 'none',
|
borderBottom: 'none',
|
||||||
borderRight: 'none'
|
borderRight: 'none',
|
||||||
},
|
borderRadius: theme.shape.borderRadius * 3,
|
||||||
'&:hover': {
|
margin: `${theme.spacing(1)}px ${theme.spacing(2)}px`,
|
||||||
backgroundColor: theme.palette.tertiary.main,
|
'&.Mui-selected': {
|
||||||
border: 'none'
|
color: theme.palette.primary.contrastText,
|
||||||
}
|
backgroundColor: theme.palette.tertiary.main,
|
||||||
}),
|
opacity: 1,
|
||||||
},
|
border: 'none',
|
||||||
],
|
borderBottom: 'none',
|
||||||
|
borderRight: 'none',
|
||||||
|
borderRadius: theme.shape.borderRadius * 3,
|
||||||
|
minHeight: theme.spacing(14)
|
||||||
|
},
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: theme.palette.tertiary.main,
|
||||||
|
border: 'none',
|
||||||
|
borderRadius: theme.shape.borderRadius * 3,
|
||||||
|
minHeight: theme.spacing(14)
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
MuiSvgIcon: {
|
MuiSvgIcon: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
|
|||||||
Reference in new issue
Block a user