Skip to content

Commit 5cf7bf7

Browse files
committed
fix: table borders. closes: #3723
1 parent 2b83503 commit 5cf7bf7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/daisyui/src/components/table.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.table {
22
@layer daisyui.l1.l2.l3 {
33
font-size: 0.875rem;
4-
@apply rounded-box relative w-full text-left rtl:text-right;
4+
@apply rounded-box relative w-full border-separate border-spacing-0 text-left rtl:text-right;
55

66
tr.row-hover {
77
&,
@@ -20,7 +20,7 @@
2020
font-weight: 600;
2121
}
2222

23-
:where(tfoot) {
23+
:where(tfoot tr:first-child :is(td, th)) {
2424
border-top: var(--border) solid color-mix(in oklch, var(--color-base-content) 5%, #0000);
2525
}
2626

@@ -36,7 +36,7 @@
3636
@apply bg-base-100 sticky right-0 left-0;
3737
}
3838

39-
:where(thead tr, tbody tr:not(:last-child)) {
39+
:where(thead tr :is(td, th), tbody tr:not(:last-child) :is(td, th)) {
4040
border-bottom: var(--border) solid color-mix(in oklch, var(--color-base-content) 5%, #0000);
4141
}
4242
}

0 commit comments

Comments
 (0)