Skip to content

Commit

Permalink
style: refine expandable styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Nov 8, 2023
1 parent d5d84f3 commit def6c57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/components/JobTable/ExpandableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ const ExpandableRow = ({ job, isFirst, isLast }) => {
})}
suppressZebraStriping
>
<TableCell />
<TableCell>{job.name}</TableCell>
<TableCell colSpan="6">{jobTypesMap[job.type]}</TableCell>
<TableCell className={styles.cell} />
<TableCell className={styles.cell}>{job.name}</TableCell>
<TableCell className={styles.cell} colSpan="6">
{jobTypesMap[job.type]}
</TableCell>
</TableRow>
)
}
Expand Down
6 changes: 4 additions & 2 deletions src/components/JobTable/ExpandableRow.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
box-shadow: inset 0 5px 4px -4px var(--colors-grey600);
}

.last {
box-shadow: inset 0 -5px 4px -4px var(--colors-grey600);
.last .cell {
/* Using important here to override the specificity of styled-jsx's inline styles */
/* stylelint-disable-next-line declaration-no-important */
border-bottom: 1px solid var(--colors-grey300) !important;
}

0 comments on commit def6c57

Please sign in to comment.