Skip to content

Commit

Permalink
change: [M3-8343] - Change VPC expanded header background color
Browse files Browse the repository at this point in the history
  • Loading branch information
hasyed-akamai committed Dec 4, 2024
1 parent 6be3f6b commit 8f06ce4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,14 @@ const getFirewallLinks = (data: Firewall[]): JSX.Element => {
};

export const SubnetLinodeTableRowHead = (
<TableRow>
<TableRow
sx={(theme) => ({
'& .MuiTableCell-root': {
backgroundColor:
theme.name == 'dark' ? theme.tokens.color.Neutrals[80] : undefined,
},
})}
>
<StyledTableHeadCell>Linode Label</StyledTableHeadCell>
<StyledTableHeadCell sx={{ width: '14%' }}>Status</StyledTableHeadCell>
<Hidden smDown>
Expand Down
16 changes: 14 additions & 2 deletions packages/manager/src/features/VPCs/VPCDetail/VPCSubnetsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,15 @@ export const VPCSubnetsTable = (props: Props) => {
}

const SubnetTableRowHead = (
<TableRow>
<TableRow
sx={(theme) => ({
'& .MuiTableCell-root': {
backgroundColor:
theme.name == 'light' ? theme.color.black : undefined,
color: theme.name == 'light' ? `${theme.color.white}` : undefined,
},
})}
>
<StyledTableSortCell
sx={(theme) => ({
[theme.breakpoints.down('sm')]: {
Expand Down Expand Up @@ -204,7 +212,7 @@ export const VPCSubnetsTable = (props: Props) => {
<Hidden smDown>
<StyledTableCell sx={{ width: '10%' }}>Linodes</StyledTableCell>
</Hidden>
<StyledTableCell></StyledTableCell>
<StyledTableCell />
</TableRow>
);

Expand Down Expand Up @@ -364,6 +372,10 @@ const StyledTableCell = styled(TableCell, {
const StyledTableSortCell = styled(TableSortCell, {
label: 'StyledTableSortCell',
})(({ theme }) => ({
'& .Mui-active': {
color: theme.name == 'light' ? `${theme.color.white}` : undefined,
},
borderBottom: `1px solid ${theme.borderColors.borderTable} !important`,
color: theme.name == 'light' ? `${theme.color.white}` : undefined,
whiteSpace: 'nowrap',
}));

0 comments on commit 8f06ce4

Please sign in to comment.