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
+10
-3
@@ -388,23 +388,30 @@ const baseTheme = (palette) => ({
|
|||||||
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`,
|
||||||
|
minHeight: theme.spacing(12),
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
backgroundColor: theme.palette.primary.main,
|
backgroundColor: theme.palette.primary.main,
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderBottom: 'none',
|
borderBottom: 'none',
|
||||||
borderRight: 'none',
|
borderRight: 'none',
|
||||||
|
borderRadius: theme.shape.borderRadius * 3,
|
||||||
|
margin: `${theme.spacing(1)}px ${theme.spacing(2)}px`,
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
backgroundColor: theme.palette.tertiary.main,
|
backgroundColor: theme.palette.tertiary.main,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderBottom: 'none',
|
borderBottom: 'none',
|
||||||
borderRight: 'none'
|
borderRight: 'none',
|
||||||
|
borderRadius: theme.shape.borderRadius * 3,
|
||||||
|
minHeight: theme.spacing(14)
|
||||||
},
|
},
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: theme.palette.tertiary.main,
|
backgroundColor: theme.palette.tertiary.main,
|
||||||
border: 'none'
|
border: 'none',
|
||||||
|
borderRadius: theme.shape.borderRadius * 3,
|
||||||
|
minHeight: theme.spacing(14)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user