Open thebrianbug opened 1 month ago
Change needed for accessibility:
<svelte:component
this={PdfViewerModule}
url={pdfUrl}
showButtons={buttonOptions}
showBorder={false}
/>
<!-- Example of updating a problematic <span> element -->
{#if showButtons.includes("navigation")}
<Tooltip>
<span
slot="activator"
role="button"
tabindex="0"
class="button-control {pageNum <= 1 ? 'disabled' : ''}"
on:click={handleClick}
on:keydown={handleKeydown}
>
<!-- Your content here -->
</span>
</Tooltip>
{/if}
<!-- Repeat similar updates for other <span> elements as needed -->
Background
The following warnings are output to console when building a project that uses this library, version
1.0.20
.It is not expected that plugins output build warnings.
Accessibility
The code should be refactored to be more accessible.
Eval
If it's possible to not use eval, that would be great. If not, this warning should be either suppressed or a config should be provided from the package to suppress it.