Skip to content

Commit

Permalink
Quiet warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire committed Nov 2, 2023
1 parent 3734d93 commit f842d32
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 80 deletions.
158 changes: 79 additions & 79 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/lib/components/AudioBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ TODO:
</div>
{#if $audioPlayer.loaded}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<progress
id="progress-bar"
class="dy-progress audio-progress"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/CollectionList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ Custom list of collections for the LayoutOptions menu
<!-- svelte-ignore a11y-missing-attribute -->
<li>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<a
on:click={() => handleClick(d)}
style:background-color={selectedLayouts.id === d.id
? $themeColors['LayoutItemSelectedBackgroundColor']
: ''}
class="flex justify-between"
role="button"
>
<div style={$s['ui.layouts.selector']}>
<div style={convertStyle($s['ui.layouts.title'])}>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/FontList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ Font list component.
<!-- svelte-ignore a11y-missing-attribute -->
<li style:font-family={font} style:font-size="large">
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<a
on:click={() => handleClick(font)}
style:background-color={font === selectedFont
? $themeColors['ButtonSelectedColor']
: ''}
style:color={$monoIconColor}
style:font-famly={font}
role="button"
>
{config.fonts.find((x) => x.family === font).name}
</a>
Expand Down
5 changes: 5 additions & 0 deletions src/lib/components/SelectGrid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ A component to display menu options in a grid.
<div class="mx-2" style={headerStyle}>{group.header}</div>
{/if}
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<div
on:touchstart={handleHover}
on:touchmove={handleTouchMove}
Expand All @@ -84,10 +85,12 @@ A component to display menu options in a grid.
class="grid grid-cols-{cols} gap-1 m-2"
class:grid-cols-5={cols == 5}
class:grid-cols-6={cols == 6}
role="menu"
>
{#if group.rows}
{#each group.rows as row}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<span
on:click={() => handleClick(row.id)}
id={row.id}
Expand All @@ -98,13 +101,15 @@ A component to display menu options in a grid.
style:background-color={hovered === row.id
? hoverColor
: bookCollectionColor(row.id, 'ui.button.chapter-intro')}
role="button"
>
{row.label}
</span>
{/each}
{/if}
{#each group.cells as cell}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<span
on:click={() => handleClick(cell.id)}
id={cell.id}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/SelectList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ A component to display menu options in a list.
{#if ri * group.cells.length + ci < group.cells.length}
<tr>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<span
on:click={() =>
handleClick(group.cells[ri * group.cells.length + ci].id)}
class="menu p-0 cursor-pointer hover:bg-base-100 min-w-[16rem]"
role="button"
>
{group.cells[ri * group.cells.length + ci].label}
</span></tr
Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ The sidebar/drawer.
<!-- Page content here -->
<slot />
</div>
<div class="dy-drawer-side" on:click={closeDrawer} on:keydown={closeDrawer}>
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<div class="dy-drawer-side" on:click={closeDrawer} on:keydown={closeDrawer} role="navigation">
<div class="dy-drawer-overlay" />
<ul
class="dy-menu p-1 w-3/4 sm:w-80 text-base-content"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/TabsMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ A component to display tabbed menus.
{#if options[opt].visible}
<!-- svelte-ignore a11y-missing-attribute -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<a
on:click|preventDefault={() => setActive(opt)}
style:border-color={active === opt ? '#FFFFFF' : ''}
class="dy-tab dy-tab-bordered text-white normal-case {active === opt
? 'dy-tab-active'
: ''}"
style:background="none"
role="button"
>
{#if options[opt].tab}
<svelte:component
Expand Down
12 changes: 12 additions & 0 deletions src/lib/components/TextSelectionToolbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -144,46 +144,58 @@ TODO:
{#if showHightlightPens}
<div class="pen-grid grid grid-rows-1 gap-2 my-2">
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<div
class="dy-btn-sm"
style:background-color={$themeColors['HighlighterPenYellow']}
style:border={buttonBorder}
on:click={() => modifyHighlight(1)}
role="button"
/>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<div
class="dy-btn-sm"
style:background-color={$themeColors['HighlighterPenGreen']}
style:border={buttonBorder}
on:click={() => modifyHighlight(2)}
role="button"
/>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<div
class="dy-btn-sm"
style:background-color={$themeColors['HighlighterPenBlue']}
style:border={buttonBorder}
on:click={() => modifyHighlight(3)}
role="button"
/>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<div
class="dy-btn-sm"
style:background-color={$themeColors['HighlighterPenOrange']}
style:border={buttonBorder}
on:click={() => modifyHighlight(4)}
role="button"
/>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<div
class="dy-btn-sm"
style:background-color={$themeColors['HighlighterPenPink']}
style:border={buttonBorder}
on:click={() => modifyHighlight(5)}
role="button"
/>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-interactive-supports-focus -->
<div
class="dy-btn-sm"
style:background-color={'white'}
style:border={buttonBorder}
on:click={() => modifyHighlight(6)}
role="button"
/>
</div>
{:else}
Expand Down

0 comments on commit f842d32

Please sign in to comment.