Fix spacing, borders, and border radius for style overrides to match theme values.
This commit is contained in:
1 parent
71763f4b66
commit
2a54d2ce16
1 file changed
+6
-6
@@ -356,17 +356,17 @@ const baseTheme = (palette) => ({
|
|||||||
MuiTab: {
|
MuiTab: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
fontSize: 13,
|
fontSize: theme.typography.fontSize - 1,
|
||||||
color: theme.palette.tertiary.contrastText,
|
color: theme.palette.tertiary.contrastText,
|
||||||
backgroundColor: theme.palette.tertiary.main,
|
backgroundColor: theme.palette.tertiary.main,
|
||||||
textTransform: "none",
|
textTransform: "none",
|
||||||
minWidth: "fit-content",
|
minWidth: "fit-content",
|
||||||
paddingY: theme.spacing(6),
|
padding: `${theme.spacing(6)}px ${theme.spacing(4)}px`,
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
borderBottom: "2px solid transparent",
|
borderBottom: `${theme.shape.borderThick}px solid transparent`,
|
||||||
borderRight: `1px solid ${theme.palette.primary.lowContrast}`,
|
borderRight: `${theme.shape.borderRadius / 2}px solid ${theme.palette.primary.lowContrast}`,
|
||||||
"&:first-of-type": { borderTopLeftRadius: "8px" },
|
"&:first-of-type": { borderTopLeftRadius: theme.shape.borderRadius * 4 },
|
||||||
"&:last-child": { borderTopRightRadius: "8px", borderRight: 0 },
|
"&:last-child": { borderTopRightRadius: theme.shape.borderRadius * 4, borderRight: 0 },
|
||||||
"&:focus-visible": {
|
"&:focus-visible": {
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
borderColor: theme.palette.tertiary.contrastText,
|
borderColor: theme.palette.tertiary.contrastText,
|
||||||
|
|||||||
Reference in new issue
Block a user