Skip to content

Commit

Permalink
Fix nested table border issue (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard authored Nov 14, 2024
1 parent cbc73e7 commit 6a61532
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions components/dist/asciidoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,12 @@
@apply border-r-0;
}

.asciidoc-body tbody tr:last-child td,
.asciidoc-body tbody tr:last-child th {
/*
specificity to handle nested tables
todo: check if it's needed in any of the other table styles
*/
.asciidoc-body tbody > tr:last-child > td,
.asciidoc-body tbody > tr:last-child > th {
@apply border-b-0;
}

Expand Down
8 changes: 6 additions & 2 deletions components/src/assets/asciidoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,12 @@
@apply border-r-0;
}

.asciidoc-body tbody tr:last-child td,
.asciidoc-body tbody tr:last-child th {
/*
specificity to handle nested tables
todo: check if it's needed in any of the other table styles
*/
.asciidoc-body tbody > tr:last-child > td,
.asciidoc-body tbody > tr:last-child > th {
@apply border-b-0;
}

Expand Down

0 comments on commit 6a61532

Please sign in to comment.