Skip to content

Commit

Permalink
fix mute aria warnings
Browse files Browse the repository at this point in the history
Mute ARIA warnings where it's unknown if/when an on:click handler is used
  • Loading branch information
bestguy committed Aug 6, 2023
1 parent f82948e commit f8c1ca6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
);
</script>

<!-- svelte-ignore a11y-no-static-element-interactions -->
<div {...$$restProps} class={classes} on:click>
<slot />
</div>
2 changes: 2 additions & 0 deletions src/CardHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
</script>

{#if tag === 'h3'}
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<h3 {...$$restProps} class={classes} on:click>
<slot />
</h3>
{:else}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div {...$$restProps} class={classes} on:click>
<slot />
</div>
Expand Down
1 change: 1 addition & 0 deletions src/DropdownItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<slot />
</h6>
{:else if divider}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div {...$$restProps} on:click on:click={handleItemClick} class={classes}>
<slot />
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/DropdownToggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
</slot>
</a>
{:else if tag === 'div'}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
use:$context.popperRef
{...$$restProps}
Expand All @@ -78,6 +79,7 @@
</slot>
</div>
{:else if tag === 'span'}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<span
use:$context.popperRef
{...$$restProps}
Expand Down
1 change: 1 addition & 0 deletions src/ListGroupItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
</button>
{:else}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<li {...$$restProps} class={classes} on:click {disabled} {active}>
<slot />
</li>
Expand Down
1 change: 1 addition & 0 deletions src/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class={wrapClassName} tabindex="-1" {...$$restProps}>
{#if isOpen}
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<div
in:modalIn
out:modalOut
Expand Down

0 comments on commit f8c1ca6

Please sign in to comment.