Fix: Lint warnings about non-interavtive content and onclick handlers.
This commit is contained in:
@@ -80,20 +80,26 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="quick-actions">
|
<div class="quick-actions">
|
||||||
<button class="icon-btn" on:click={() => (reversed = !reversed)}>
|
<button class="icon-btn" onclick={() => (reversed = !reversed)}>
|
||||||
⇄ {reversed ? 'UP' : 'DN'}
|
⇄ {reversed ? 'UP' : 'DN'}
|
||||||
</button>
|
</button>
|
||||||
<button class="icon-btn" on:click={() => (showFilters = !showFilters)}> Settings </button>
|
<button class="icon-btn" onclick={() => (showFilters = !showFilters)}> Settings </button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{#if showFilters}
|
{#if showFilters}
|
||||||
<div class="backdrop" on:click={() => (showFilters = false)}></div>
|
<div
|
||||||
|
class="backdrop"
|
||||||
|
role="button"
|
||||||
|
tabindex="0"
|
||||||
|
onclick={() => (showFilters = false)}
|
||||||
|
onkeydown={(e) => (e.key === 'Enter' || e.key === ' ') && (showFilters = false)}
|
||||||
|
></div>
|
||||||
|
|
||||||
<div class="filter-drawer" transition:slide>
|
<div class="filter-drawer" transition:slide>
|
||||||
<div class="drawer-header">
|
<div class="drawer-header">
|
||||||
<h3>Visibility Filters</h3>
|
<h3>Visibility Filters</h3>
|
||||||
<button class="close-icon" on:click={() => (showFilters = false)} aria-label="Close">
|
<button class="close-icon" onclick={() => (showFilters = false)} aria-label="Close">
|
||||||
<svg
|
<svg
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
width="20"
|
width="20"
|
||||||
@@ -113,7 +119,7 @@
|
|||||||
<button
|
<button
|
||||||
class="filter-chip"
|
class="filter-chip"
|
||||||
class:active={visibleTypes[type]}
|
class:active={visibleTypes[type]}
|
||||||
on:click={() => toggleFilter(type)}
|
onclick={() => toggleFilter(type)}
|
||||||
>
|
>
|
||||||
{formatLabel(type)}
|
{formatLabel(type)}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user