diff --git a/components/dist/asciidoc.css b/components/dist/asciidoc.css index ad2d95ff..fc9c3d6b 100644 --- a/components/dist/asciidoc.css +++ b/components/dist/asciidoc.css @@ -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; } diff --git a/components/src/assets/asciidoc.css b/components/src/assets/asciidoc.css index ad2d95ff..fc9c3d6b 100644 --- a/components/src/assets/asciidoc.css +++ b/components/src/assets/asciidoc.css @@ -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; }