Skip to content

Commit

Permalink
Merge pull request #52 from vinodnimbalkar/a11y-warning
Browse files Browse the repository at this point in the history
remove a11y warnings
  • Loading branch information
vinodnimbalkar authored Apr 29, 2023
2 parents 51cc8fb + e1ace04 commit 9f21529
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-pdf",
"version": "1.0.18",
"version": "1.0.19",
"description": "svelte-pdf provides a component for rendering PDF documents using PDF.js",
"main": "index.js",
"type": "module",
Expand Down
9 changes: 9 additions & 0 deletions src/lib/PdfViewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@
slot="activator"
class="button-control {pageNum <= 1 ? 'disabled' : null}"
on:click={() => onPrevPage()}
on:keydown
>
<svg
class="icon"
Expand All @@ -266,6 +267,7 @@
slot="activator"
class="button-control {pageNum >= totalPage ? 'disabled' : null}"
on:click={() => onNextPage()}
on:keydown
>
<svg
class="icon"
Expand All @@ -287,6 +289,7 @@
slot="activator"
class="button-control {scale >= maxScale ? 'disabled' : null}"
on:click={() => onZoomIn()}
on:keydown
>
<svg
class="icon"
Expand All @@ -308,6 +311,7 @@
slot="activator"
class="button-control {scale <= minScale ? 'disabled' : null}"
on:click={() => onZoomOut()}
on:keydown
>
<svg
class="icon"
Expand All @@ -331,6 +335,7 @@
slot="activator"
class="button-control"
on:click={() => printPdf(url)}
on:keydown
>
<svg
class="icon"
Expand All @@ -352,6 +357,7 @@
slot="activator"
class="button-control"
on:click={() => antiClockwiseRotate()}
on:keydown
>
<svg
class="icon rot-icon"
Expand All @@ -371,6 +377,7 @@
slot="activator"
class="button-control"
on:click={() => clockwiseRotate()}
on:keydown
>
<svg
class="icon"
Expand All @@ -392,6 +399,7 @@
slot="activator"
class="button-control"
on:click={() => downloadPdf({url, data})}
on:keydown
>
<svg
class="icon"
Expand All @@ -410,6 +418,7 @@
slot="activator"
class="page-info button-control"
on:click={() => onPageTurn()}
on:keydown
>
<svg
class="icon"
Expand Down

0 comments on commit 9f21529

Please sign in to comment.