Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</script>

<div
class={['bg-background/95 sticky top-2 z-30 flex w-full flex-wrap items-center justify-between gap-2 backdrop-blur-sm', className]}
class={['border-border bg-background sticky top-2 z-30 flex w-full flex-wrap items-center justify-between gap-2 border-y', className]}
data-slot="data-table-footer"
>
{#if children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('DataTablePager', () => {
scrollIntoView.mockReset();
});

it('keeps bulk actions and pagination together in the sticky table toolbar', () => {
it('keeps bulk actions and pagination together in the solid sticky table toolbar', () => {
render(DataTablePagerTestHarness, { onPageIndexChange: vi.fn(), onPageSizeChange: vi.fn() });

const toolbar = document.querySelector('[data-slot="data-table-footer"]');
Expand All @@ -29,6 +29,8 @@ describe('DataTablePager', () => {
expect(toolbar?.classList.contains('top-2')).toBe(true);
expect(toolbar?.classList.contains('order-2')).toBe(false);
expect(toolbar?.classList.contains('border')).toBe(false);
expect(toolbar?.classList.contains('border-y')).toBe(true);
expect(toolbar?.classList.contains('bg-background')).toBe(true);
expect(toolbar?.classList.contains('p-2')).toBe(false);
expect(toolbar?.contains(screen.getByRole('button', { name: 'Bulk Actions' }))).toBe(true);
expect(toolbar?.contains(pager)).toBe(true);
Expand Down
Loading