Skip to content

Commit b6daad8

Browse files
authored
Merge pull request #122 from BEXIS2/table
Add variants for buttons
2 parents 6c79375 + 6b0ba17 commit b6daad8

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

src/app.postcss

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,3 @@ body {
2525
.list-item .item.hover:not(.active):not(.list-group-title) {
2626
@apply dark:!text-black;
2727
}
28-
29-
.paginator-controls button:disabled:hover {
30-
@apply !variant-filled !bg-neutral-400 !text-on-surface-token !opacity-30 !fill-gray-600;
31-
}
32-
33-
.paginator-controls button:disabled {
34-
@apply !variant-filled !bg-neutral-400 !text-on-surface-token !opacity-30 !fill-gray-600;
35-
}
36-
37-
.paginator-controls button.active {
38-
@apply variant-filled-secondary !text-on-secondary-token;
39-
}
40-
41-
.paginator-controls button {
42-
@apply variant-filled-primary !text-on-primary-token;
43-
}
44-
45-
.paginator-controls button:hover {
46-
@apply !variant-filled-primary opacity-90;
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-
active="active"
71-
controlVariant=""
72-
buttonClasses="!rounded-none !px-3 !py-1.5 fill-current"
70+
active="!variant-filled-secondary !text-on-secondary-token"
71+
controlVariant="!text-on-primary-token"
72+
buttonClasses="!rounded-none !px-3 !py-1.5 fill-current bg-primary-500 hover:!bg-primary-600 !text-on-primary-token disabled:grayscale disabled:!opacity-30"
7373
regionControl="btn-group"
7474
maxNumerals={1}
7575
showNumerals

0 commit comments

Comments
 (0)