Skip to content

Commit

Permalink
Fix maintenace table and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhollid committed Jan 22, 2025
1 parent bc8d43e commit 7b5d49c
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 261 deletions.
9 changes: 9 additions & 0 deletions Client/src/Components/Inputs/Search/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ const Search = ({
"& .MuiOutlinedInput-root": {
paddingY: 0,
},
"& .MuiAutocomplete-tag": {
// CAIO_REVIEW
color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.primary.lowContrast,
},
"& .MuiChip-deleteIcon": {
color: theme.palette.primary.contrastText, // CAIO_REVIEW
},
}}
/>
{error && (
Expand Down Expand Up @@ -165,6 +173,7 @@ const Search = ({
"& .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'], & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'].Mui-focused, & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true']:hover":
{
backgroundColor: theme.palette.primary.lowContrast,
color: "red",
},
"& li.MuiAutocomplete-option:hover:not([aria-selected='true'])": {
color: theme.palette.primary.main,
Expand Down
2 changes: 1 addition & 1 deletion Client/src/Components/Table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DataTable = ({ headers, data, config = { emptyView: "No data" } }) => {
<TableRow
key={key}
sx={config?.rowSX ?? {}}
onClick={() => config?.onRowClick(row)}
onClick={config?.onRowClick ? () => config.onRowClick(row) : null}
>
{headers.map((header, index) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion Client/src/Pages/Maintenance/CreateMaintenance/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ const CreateMaintenance = () => {
backgroundColor: theme.palette.accent.light, // Hover background
},
"&.Mui-disabled": {
color: theme.palette.primary.lowContrast, // Disabled day color
color: theme.palette.primary.ContrastTextTertiary, // Disabled day color
},
},
"& .MuiDayCalendar-weekDayLabel": {
Expand Down
Loading

0 comments on commit 7b5d49c

Please sign in to comment.