Skip to content

Commit fb0e18f

Browse files
authored
Fix table header appearance when a cell is empty (#958)
1 parent 65d743c commit fb0e18f

File tree

1 file changed

+2
-1
lines changed
  • src/Elastic.Markdown/Assets/markdown

1 file changed

+2
-1
lines changed

src/Elastic.Markdown/Assets/markdown/table.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525

2626
thead {
2727
@apply border-grey-20 bg-grey-10 border-b-1 text-left align-top font-sans font-semibold;
28-
:empty {
28+
&:not(:has(th:not(:empty))) {
29+
/* If no th within thead is not empty, all are empty, so hide the thead */
2930
display: none;
3031
}
3132
}

0 commit comments

Comments
 (0)