Skip to content

Commit

Permalink
-Fix Tab color
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-gan committed Jan 27, 2025
1 parent 083a134 commit b7a70c4
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions Client/src/Pages/Status/CreateStatus/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,14 @@ import { buildErrors } from "../../../Validation/error";
};

return (
<Stack
<Box
className="status"
px={theme.spacing(20)}
py={theme.spacing(12)}
gap={theme.spacing(12)}
backgroundColor={theme.palette.primary.main}
border={1}
borderColor={theme.palette.primary.lowContrast}
borderRadius={theme.shape.borderRadius}
backgroundColor={theme.palette.primary.main}
>
<TabContext value={tabList[tabIdx]}>
<Box
Expand All @@ -164,30 +163,43 @@ import { buildErrors } from "../../../Validation/error";
value={label}
sx={{
fontSize: 13,
color: theme.palette.primary.contrastTextSecondary,
color: theme.palette.tertiary.contrastText,
backgroundColor: theme.palette.tertiary.main,
textTransform: "none",
minWidth: "fit-content",
minHeight: 0,
paddingLeft: 0,
paddingY: theme.spacing(4),
paddingY: theme.spacing(6),
fontWeight: 400,
marginRight: theme.spacing(8),
"&:focus": {
outline: "none",
borderBottom: "2px solid transparent",
borderRight: `1px solid ${theme.palette.primary.lowContrast}`,
"&: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,
}
}}
/>
))}
</TabList>
</Box>
</Box>
<StatusFormProvider
form={form}
setForm={setForm}
errors={errors}
setErrors={setErrors}
handleBlur ={handleBlur}
handleChange = {handleChange}
handelCheckboxChange = {handelCheckboxChange}
handleBlur={handleBlur}
handleChange={handleChange}
handelCheckboxChange={handelCheckboxChange}
>
{tabIdx == 0 ? <GeneralSettingsPanel /> : <ContentPanel />}
</StatusFormProvider>
Expand All @@ -204,7 +216,7 @@ import { buildErrors } from "../../../Validation/error";
Save
</Button>
</Stack>
</Stack>
</Box>
);
};

Expand Down

0 comments on commit b7a70c4

Please sign in to comment.