diff --git a/site/content/docs/05-accessibility-warnings.md b/site/content/docs/05-accessibility-warnings.md index 3151ef259d..1ef1ae801e 100644 --- a/site/content/docs/05-accessibility-warnings.md +++ b/site/content/docs/05-accessibility-warnings.md @@ -191,25 +191,6 @@ Enforce that heading elements (`h1`, `h2`, etc.) and anchors have content and th --- -### `a11y-no-onchange` - -Enforce usage of `on:blur` over/in parallel with `on:change` on select menu elements for accessibility. `on:blur` should be used instead of `on:change`, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users. `on:blur` is a more declarative action by the user: for instance in a dropdown, using the arrow keys to toggle between options will trigger the `on:change` event in some browsers. Regardless, when a change of context results from an `on:blur` event or an `on:change` event, the user should be notified of the change unless it occurs below the currently focused element. - -```sv - - - - -``` - ---- - ### `a11y-positive-tabindex` Avoid positive `tabIndex` property values to synchronize the flow of the page with keyboard tab order. diff --git a/site/src/routes/tutorial/[slug]/_TableOfContents.svelte b/site/src/routes/tutorial/[slug]/_TableOfContents.svelte index 3b9d9ca44b..97a298bcca 100644 --- a/site/src/routes/tutorial/[slug]/_TableOfContents.svelte +++ b/site/src/routes/tutorial/[slug]/_TableOfContents.svelte @@ -77,7 +77,6 @@ {selected.chapter.title} - {}}> - - - - - - \ No newline at end of file diff --git a/test/validator/samples/a11y-no-onchange/warnings.json b/test/validator/samples/a11y-no-onchange/warnings.json deleted file mode 100644 index 461f546c0b..0000000000 --- a/test/validator/samples/a11y-no-onchange/warnings.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "code": "a11y-no-onchange", - "end": { - "character": 88, - "column": 9, - "line": 4 - }, - "message": "A11y: on:blur must be used instead of on:change, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users.", - "pos": 0, - "start": { - "character": 0, - "column": 0, - "line": 1 - } - }, - { - "code": "a11y-no-onchange", - "end": { - "character": 249, - "column": 44, - "line": 10 - }, - "message": "A11y: on:blur must be used instead of on:change, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users.", - "pos": 209, - "start": { - "character": 209, - "column": 4, - "line": 10 - } - } -]