Skip to content

Commit

Permalink
fix(next): Fix <Table.Footer> foreground color (#1449)
Browse files Browse the repository at this point in the history
fixes #1440
  • Loading branch information
ieedan authored Nov 6, 2024
1 parent 802a328 commit e06303c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
6 changes: 6 additions & 0 deletions sites/docs/src/lib/registry/default/example/table-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,10 @@
</Table.Row>
{/each}
</Table.Body>
<Table.Footer>
<Table.Row>
<Table.Cell colspan={3}>Total</Table.Cell>
<Table.Cell class="text-right">$2,500.00</Table.Cell>
</Table.Row>
</Table.Footer>
</Table.Root>
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();
</script>

<tfoot
bind:this={ref}
class={cn("bg-muted/50 text-primary-foreground font-medium", className)}
{...restProps}
>
<tfoot bind:this={ref} class={cn("bg-muted/50 font-medium", className)} {...restProps}>
{@render children?.()}
</tfoot>
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,10 @@
</Table.Row>
{/each}
</Table.Body>
<Table.Footer>
<Table.Row>
<Table.Cell colspan={3}>Total</Table.Cell>
<Table.Cell class="text-right">$2,500.00</Table.Cell>
</Table.Row>
</Table.Footer>
</Table.Root>
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();
</script>

<tfoot
bind:this={ref}
class={cn("bg-muted/50 text-primary-foreground font-medium", className)}
{...restProps}
>
<tfoot bind:this={ref} class={cn("bg-muted/50 font-medium", className)} {...restProps}>
{@render children?.()}
</tfoot>

0 comments on commit e06303c

Please sign in to comment.