Skip to content
Merged

Table #120

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
22 changes: 21 additions & 1 deletion src/app.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ body {
--tw-ring-color: #00000;
}

.svelte-select, .svelte-select-list {
.svelte-select,
.svelte-select-list {
@apply dark:!bg-zinc-700 border dark:!border-zinc-500;
}

Expand All @@ -25,3 +26,22 @@ body {
@apply dark:!text-black;
}

.paginator-controls button {
@apply variant-filled-primary !text-on-primary-token;
}

.paginator-controls button:hover {
@apply !variant-filled-primary opacity-90;
}

.paginator-controls button:disabled:hover {
@apply !variant-filled-surface;
}

.paginator-controls button.active {
@apply variant-filled-secondary !text-on-secondary-token;
}

.paginator-controls button:disabled {
@apply variant-filled-surface !text-on-surface-token;
}
7 changes: 4 additions & 3 deletions src/lib/components/Table/TablePagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@
on:page={(page) => ($pageIndex = page.detail)}
settings={paginationSettings}
select="hidden"
buttonClasses="disabled:!variant-filled-surface !px-3 !py-1.5 !fill-current !variant-filled-primary"
active="!variant-filled-secondary"
active="active"
controlVariant=""
regionControl="btn-group"
maxNumerals={1}
showNumerals
/>
</div>
<div class="flex justify-end items-center">
<div class="flex justify-end items-center text-on-primary-token">
<span class="text-xs text-gray-500">{indexInformation}</span>
</div>
</div>