Skip to content

Commit f3d0ce0

Browse files
authored
Merge pull request #120 from BEXIS2/table
Table
2 parents 4874e13 + 173eb9a commit f3d0ce0

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

src/app.postcss

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ body {
1313
--tw-ring-color: #00000;
1414
}
1515

16-
.svelte-select, .svelte-select-list {
16+
.svelte-select,
17+
.svelte-select-list {
1718
@apply dark:!bg-zinc-700 border dark:!border-zinc-500;
1819
}
1920

@@ -25,3 +26,22 @@ body {
2526
@apply dark:!text-black;
2627
}
2728

29+
.paginator-controls button {
30+
@apply variant-filled-primary !text-on-primary-token;
31+
}
32+
33+
.paginator-controls button:hover {
34+
@apply !variant-filled-primary opacity-90;
35+
}
36+
37+
.paginator-controls button:disabled:hover {
38+
@apply !variant-filled-surface;
39+
}
40+
41+
.paginator-controls button.active {
42+
@apply variant-filled-secondary !text-on-secondary-token;
43+
}
44+
45+
.paginator-controls button:disabled {
46+
@apply variant-filled-surface !text-on-surface-token;
47+
}

src/lib/components/Table/TablePagination.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@
6767
on:page={(page) => ($pageIndex = page.detail)}
6868
settings={paginationSettings}
6969
select="hidden"
70-
buttonClasses="disabled:!variant-filled-surface !px-3 !py-1.5 !fill-current !variant-filled-primary"
71-
active="!variant-filled-secondary"
70+
active="active"
71+
controlVariant=""
72+
regionControl="btn-group"
7273
maxNumerals={1}
7374
showNumerals
7475
/>
7576
</div>
76-
<div class="flex justify-end items-center">
77+
<div class="flex justify-end items-center text-on-primary-token">
7778
<span class="text-xs text-gray-500">{indexInformation}</span>
7879
</div>
7980
</div>

0 commit comments

Comments
 (0)