Skip to content

Commit

Permalink
chore: add comments to ignore svelte a11y warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Feb 9, 2024
1 parent 54f7a42 commit 567ea13
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ui/history/components/logComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
let isCollapsed = true;
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<main>
<div class="tree-item nav-folder" class:is-collapsed={isCollapsed}>
<div
Expand Down
3 changes: 3 additions & 0 deletions src/ui/history/components/logFileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
}
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<main
on:click|stopPropagation={showDiff}
on:auxclick|stopPropagation={showDiff}
Expand Down
2 changes: 2 additions & 0 deletions src/ui/history/components/logTreeComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
}
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<main class:topLevel>
{#each hierarchy.children as entity}
{#if entity.data}
Expand Down
2 changes: 2 additions & 0 deletions src/ui/history/historyView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
}
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<main>
<div class="nav-header">
<div class="nav-buttons-container">
Expand Down
3 changes: 3 additions & 0 deletions src/ui/sourceControl/components/fileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
</script>

<!-- TODO: Fix arai-label for left sidebar and if it's too long -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<main
on:mouseover={hover}
on:click|stopPropagation={showDiff}
Expand Down
3 changes: 2 additions & 1 deletion src/ui/sourceControl/components/pulledFileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
}
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<main
on:mouseover={hover}
on:click|stopPropagation={open}
on:auxclick|stopPropagation={open}
on:focus
class="tree-item nav-file"
>
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<div
class="tree-item-self is-clickable nav-file-title"
data-path={change.vault_path}
Expand Down
3 changes: 3 additions & 0 deletions src/ui/sourceControl/components/stagedFileComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
}
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<main
on:mouseover={hover}
on:focus
Expand Down
2 changes: 2 additions & 0 deletions src/ui/sourceControl/components/treeComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
}
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<main class:topLevel>
{#each hierarchy.children as entity}
{#if entity.data}
Expand Down
2 changes: 2 additions & 0 deletions src/ui/sourceControl/sourceControl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@
$: rows = (commitMessage.match(/\n/g) || []).length + 1 || 1;
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<main data-type={SOURCE_CONTROL_VIEW_CONFIG.type}>
<div class="nav-header">
<div class="nav-buttons-container">
Expand Down

0 comments on commit 567ea13

Please sign in to comment.