Skip to content

Commit 173eb9a

Browse files
committed
Fix background color and rounded corners issues on Table paginator
1 parent ea29ebf commit 173eb9a

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
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"
72-
controlVariant="text-on-primary-token"
70+
active="active"
71+
controlVariant=""
72+
regionControl="btn-group"
7373
maxNumerals={1}
7474
showNumerals
7575
/>

0 commit comments

Comments
 (0)