8000 docs: add note on multiple ignored comments (#12021) · sveltejs/svelte@84eb0c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84eb0c6

Browse files
authored
docs: add note on multiple ignored comments (#12021)
1 parent e2a999c commit 84eb0c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

documentation/docs/05-misc/02-accessibility-warnings.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ Some warnings may be incorrect in your concrete use case. You can disable such f
1111
<input autofocus />
1212
```
1313

14+
You can list multiple rules in a single comment, and add an explanatory note alongside them:
15+
16+
```svelte
17+
<!-- svelte-ignore a11y-click-events-have-key-events a11y-no-static-element-interactions (because of reasons) -->
18+
<div on:click>...</div>
19+
```
20+
1421
Here is a list of accessibility checks Svelte will do for you.
1522

1623
## `a11y-accesskey`

0 commit comments

Comments
 (0)
0