-Fix Tab color

This commit is contained in:
Shemy Gan committed 2025-01-27 15:46:46 -05:00
1 parent 083a134339
commit b7a70c41bb
1 file changed
+26 -14
+26 -14
View File
@@ -135,15 +135,14 @@ import { buildErrors } from "../../../Validation/error";
}; };
return ( return (
<Stack <Box
className="status" className="status"
px={theme.spacing(20)} px={theme.spacing(20)}
py={theme.spacing(12)} py={theme.spacing(12)}
gap={theme.spacing(12)} backgroundColor={theme.palette.primary.main}
border={1} border={1}
borderColor={theme.palette.primary.lowContrast} borderColor={theme.palette.primary.lowContrast}
borderRadius={theme.shape.borderRadius} borderRadius={theme.shape.borderRadius}
backgroundColor={theme.palette.primary.main}
> >
<TabContext value={tabList[tabIdx]}> <TabContext value={tabList[tabIdx]}>
<Box <Box
@@ -164,17 +163,30 @@ import { buildErrors } from "../../../Validation/error";
value={label} value={label}
sx={{ sx={{
fontSize: 13, fontSize: 13,
color: theme.palette.primary.contrastTextSecondary, color: theme.palette.tertiary.contrastText,
backgroundColor: theme.palette.tertiary.main,
textTransform: "none", textTransform: "none",
minWidth: "fit-content", minWidth: "fit-content",
minHeight: 0, paddingY: theme.spacing(6),
paddingLeft: 0,
paddingY: theme.spacing(4),
fontWeight: 400, fontWeight: 400,
marginRight: theme.spacing(8), borderBottom: "2px solid transparent",
"&:focus": { borderRight: `1px solid ${theme.palette.primary.lowContrast}`,
outline: "none", "&:first-child": { borderTopLeftRadius: "8px" },
"&:last-child": { borderTopRightRadius: "8px", borderRight: 0 },
"&:focus-visible": {
color: theme.palette.primary.contrastText,
borderColor: theme.palette.tertiary.contrastText,
borderRightColor: theme.palette.primary.lowContrast,
}, },
"&.Mui-selected": {
backgroundColor: theme.palette.secondary.main,
color: theme.palette.secondary.contrastText,
borderColor: theme.palette.secondary.contrastText,
borderRightColor: theme.palette.primary.lowContrast,
},
"&:hover": {
borderColor: theme.palette.primary.lowContrast,
}
}} }}
/> />
))} ))}
@@ -185,9 +197,9 @@ import { buildErrors } from "../../../Validation/error";
setForm={setForm} setForm={setForm}
errors={errors} errors={errors}
setErrors={setErrors} setErrors={setErrors}
handleBlur ={handleBlur} handleBlur={handleBlur}
handleChange = {handleChange} handleChange={handleChange}
handelCheckboxChange = {handelCheckboxChange} handelCheckboxChange={handelCheckboxChange}
> >
{tabIdx == 0 ? <GeneralSettingsPanel /> : <ContentPanel />} {tabIdx == 0 ? <GeneralSettingsPanel /> : <ContentPanel />}
</StatusFormProvider> </StatusFormProvider>
@@ -204,7 +216,7 @@ import { buildErrors } from "../../../Validation/error";
Save Save
</Button> </Button>
</Stack> </Stack>
</Stack> </Box>
); );
}; };