Skip to content

Commit

Permalink
fix: prev & next are now button not span
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanNik committed May 20, 2022
1 parent 574f96b commit f712bff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/components/pagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@

{#if totalPages > 1}
<nav class="pagination">
<span
<button
on:click={() => handleButtonPage('prev')}
class:is-disabled={currentPage <= 1}
class="button is-text"
aria-label="prev page">
<span class="icon-cheveron-left" aria-hidden="true" />
<span class="text">Prev</span>
</span>
</button>
<ol class="pagination-list is-only-desktop">
{#each pages as page}
{#if typeof page === 'number'}
Expand All @@ -84,13 +84,13 @@
{/if}
{/each}
</ol>
<span
<button
on:click={() => handleButtonPage('next')}
class:is-disabled={currentPage === totalPages}
class="button is-text"
aria-label="next page">
<span class="text">Next</span>
<span class="icon-cheveron-right" aria-hidden="true" />
</span>
</button>
</nav>
{/if}

0 comments on commit f712bff

Please sign in to comment.