From 73fbde15e467f6db078dfd0af8a4fcec87ebd1df Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 24 Apr 2024 21:47:53 -0400 Subject: [PATCH] tweak a11y messages --- .../svelte/messages/compile-warnings/a11y.md | 34 ++--- packages/svelte/src/compiler/warnings.js | 100 +++++++-------- .../each-block-keyed-non-prop/_config.js | 6 +- .../_config.js | 4 +- .../samples/each-block-keyed/_config.js | 4 +- .../samples/a11y-alt-text/warnings.json | 8 +- .../a11y-anchor-has-content/warnings.json | 2 +- .../a11y-anchor-in-svg-is-valid/warnings.json | 2 +- .../a11y-anchor-is-valid/warnings.json | 6 +- .../a11y-aria-activedescendant/warnings.json | 2 +- .../samples/a11y-aria-props/warnings.json | 2 +- .../warnings.json | 4 +- .../a11y-autocomplete-valid/warnings.json | 6 +- .../warnings.json | 16 +-- .../a11y-heading-has-content/warnings.json | 4 +- .../samples/a11y-html-has-lang/warnings.json | 2 +- .../a11y-iframe-has-title/warnings.json | 2 +- .../a11y-img-redundant-alt/warnings.json | 6 +- .../a11y-media-has-caption/warnings.json | 8 +- .../warnings.json | 4 +- .../warnings.json | 92 +++++++------- .../warnings.json | 10 +- .../warnings.json | 96 +++++++------- .../warnings.json | 4 +- .../warnings.json | 118 +++++++++--------- .../samples/a11y-scope/warnings.json | 2 +- .../samples/ignore-warning/warnings.json | 4 +- .../ignore-warnings-cumulative/warnings.json | 2 +- .../ignore-warnings-newline/warnings.json | 2 +- .../ignore-warnings-stacked/warnings.json | 2 +- .../samples/ignore-warnings/warnings.json | 2 +- .../samples/slot-warning/warnings.json | 2 +- .../samples/slot-warning2/warnings.json | 2 +- packages/svelte/tests/validator/test.ts | 2 +- 34 files changed, 281 insertions(+), 281 deletions(-) diff --git a/packages/svelte/messages/compile-warnings/a11y.md b/packages/svelte/messages/compile-warnings/a11y.md index c73f8c3625..f85c17a56a 100644 --- a/packages/svelte/messages/compile-warnings/a11y.md +++ b/packages/svelte/messages/compile-warnings/a11y.md @@ -4,15 +4,15 @@ ## a11y_aria_activedescendant_has_tabindex -> Elements with attribute aria-activedescendant should have tabindex value +> An element with an aria-activedescendant attribute should have a tabindex value ## a11y_aria_attributes -> <%name%> should not have aria-* attributes +> `<%name%>` should not have aria-* attributes ## a11y_autocomplete_valid -> The value '%value%' is not supported by the attribute 'autocomplete' on element +> '%value%' is an invalid value for 'autocomplete' on `` ## a11y_autofocus @@ -20,11 +20,11 @@ ## a11y_click_events_have_key_events -> Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as