Skip to content

Commit 60d9aed

Browse files
Update button classes for pagination component (#49)
1 parent a76b435 commit 60d9aed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/components/SearchPagination.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{#if totalPages > 1}
3030
<div class="flex justify-center items-center space-x-2">
3131
<button
32-
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
32+
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white cursor-pointer hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
3333
disabled={!hasPrevious}
3434
onclick={() => handlePageChange(currentPage - 1)}
3535
>
@@ -43,7 +43,7 @@
4343
class="px-4 py-2 border rounded-md shadow-sm text-sm font-medium {pageNum ===
4444
currentPage
4545
? 'bg-amber-600 text-white border-amber-600'
46-
: 'border-gray-300 text-gray-700 bg-white hover:bg-gray-50'}"
46+
: 'border-gray-300 text-gray-700 bg-white hover:bg-gray-50 cursor-pointer'}"
4747
onclick={() => handlePageChange(pageNum)}
4848
>
4949
{pageNum}
@@ -52,7 +52,7 @@
5252
</div>
5353

5454
<button
55-
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
55+
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white cursor-pointer hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
5656
disabled={!hasNext}
5757
onclick={() => handlePageChange(currentPage + 1)}
5858
>

0 commit comments

Comments
 (0)