Skip to content

Commit

Permalink
fix(Table): fix fist border on rowSpan={2} is used in first column (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Jan 29, 2023
1 parent ac4f254 commit 48ff543
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,16 +461,20 @@ export const TableStackedContainer = () => {
</thead>
<tbody>
<Tr>
<Td>Row 1</Td>
<Td rowSpan={2}>Row 1</Td>
<Td>Row 1</Td>
<Td>Row 1</Td>
<Td>Row 1</Td>
</Tr>
<Tr>
<Td rowSpan={2}>Row 2</Td>
<Td>Row 2</Td>
<Td>Row 2</Td>
<Td>Row 2</Td>
<Td>Row 2</Td>
</Tr>
<Tr>
<Td>Row 3</Td>
<Td>Row 3</Td>
<Td>Row 3</Td>
</Tr>
</tbody>
</Table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,9 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
border-right: none;
border-bottom: none; }
.dnb-table--border tbody .dnb-table__td:first-of-type::after {
border-left: none; }
.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr:last-of-type .dnb-table__td::after {
.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr:last-of-type .dnb-table__td::after,
.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr .dnb-table__td[rowspan]::after {
bottom: -0.0625rem;
border-bottom: var(--border); }
.dnb-table--outline tbody .dnb-table__td {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
border-right: none;
border-bottom: none;
}

&:first-of-type::after {
border-left: none;
}
}
&:not(#{&}--outline) tbody &__tr:last-of-type &__td::after {
&:not(#{&}--outline) tbody &__tr:last-of-type &__td::after,
&:not(#{&}--outline) tbody &__tr &__td[rowspan]::after {
bottom: -0.0625rem;
border-bottom: var(--border);
}

Expand Down

0 comments on commit 48ff543

Please sign in to comment.