Skip to content

Commit

Permalink
(feat) Remove double bottom borders from datatables
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Sep 5, 2024
1 parent 5e7a458 commit e951bb3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const MedicationsDetailsTable: React.FC<ActiveMedicationsProps> = ({
>
{({ rows, headers, getTableProps, getHeaderProps, getRowProps }) => (
<TableContainer>
<Table aria-label="medications" {...getTableProps()}>
<Table aria-label="medications" className={styles.table} {...getTableProps()}>
<TableHead>
<TableRow>
{headers.map((header) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@
.bodyLong01 {
@include type.type-style('body-01');
}

.table {
td {
border-bottom: none !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const PaginatedBiometrics: React.FC<PaginatedBiometricsProps> = ({
>
{({ rows, headers, getHeaderProps, getTableProps }) => (
<TableContainer className={styles.tableContainer}>
<Table aria-label="biometrics" {...getTableProps()}>
<Table aria-label="biometrics" className={styles.table} {...getTableProps()}>
<TableHead>
<TableRow>
{headers.map((header) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.tableContainer {
flex: 1;
}

.table {
td {
border-bottom: none !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
@use '@carbon/layout';
@use '@carbon/type';

.tableContainer {
flex: 1;
}

.table {
td {
white-space: nowrap;
border-top: 1px solid colors.$gray-20;
border-bottom: none !important;
}
}

Expand Down

0 comments on commit e951bb3

Please sign in to comment.