Skip to content

Commit

Permalink
Add discernible text to prev/next pagination buttons.
Browse files Browse the repository at this point in the history
Fixes #529
  • Loading branch information
luniki committed Jun 4, 2024
1 parent df844de commit 4095bc2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/shared/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ const Table = ({
<button
className={"button-like-anchor " + cn("prev", { disabled: !isNavigatePrevious() })}
onClick={() => goToPage(pageOffset - 1)}
/>
>
<span class="sr-only">{t("EVENTS.EVENTS.TABLE.PREVIOUS")}</span>

Check failure on line 340 in src/components/shared/Table.tsx

View workflow job for this annotation

GitHub Actions / build

Type '{ children: string; class: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
</button>
{directAccessible.map((page, key) =>
page.active ? (
<button key={key} className="button-like-anchor active">
Expand All @@ -352,7 +354,9 @@ const Table = ({
<button
className={"button-like-anchor " + cn("next", { disabled: !isNavigateNext() })}
onClick={() => goToPage(pageOffset + 1)}
/>
>
<span class="sr-only">{t("EVENTS.EVENTS.TABLE.NEXT")}</span>

Check failure on line 358 in src/components/shared/Table.tsx

View workflow job for this annotation

GitHub Actions / build

Type '{ children: string; class: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
</button>
</div>
</div>
</>
Expand Down

0 comments on commit 4095bc2

Please sign in to comment.