diff --git a/site/content/docs/06-accessibility-warnings.md b/site/content/docs/06-accessibility-warnings.md index 8be8eb888c..8d3d44a94e 100644 --- a/site/content/docs/06-accessibility-warnings.md +++ b/site/content/docs/06-accessibility-warnings.md @@ -268,7 +268,7 @@ Some HTML elements have default ARIA roles. Giving these elements an ARIA role t Tab key navigation should be limited to elements on the page that can be interacted with. ```sv - +
``` diff --git a/src/compiler/compile/compiler_warnings.ts b/src/compiler/compile/compiler_warnings.ts index bbc12617e9..3f552eb8b8 100644 --- a/src/compiler/compile/compiler_warnings.ts +++ b/src/compiler/compile/compiler_warnings.ts @@ -185,7 +185,7 @@ export default { }), a11y_no_noninteractive_tabindex: { code: 'a11y-no-noninteractive-tabindex', - message: 'A11y: noninteractive element cannot have positive tabIndex value' + message: 'A11y: noninteractive element cannot have nonnegative tabIndex value' }, redundant_event_modifier_for_touch: { code: 'redundant-event-modifier', diff --git a/test/validator/samples/a11y-no-nointeractive-tabindex/warnings.json b/test/validator/samples/a11y-no-nointeractive-tabindex/warnings.json index b2c3ec4168..1c643c896b 100644 --- a/test/validator/samples/a11y-no-nointeractive-tabindex/warnings.json +++ b/test/validator/samples/a11y-no-nointeractive-tabindex/warnings.json @@ -6,7 +6,7 @@ "column": 20, "line": 12 }, - "message": "A11y: noninteractive element cannot have positive tabIndex value", + "message": "A11y: noninteractive element cannot have nonnegative tabIndex value", "pos": 258, "start": { "character": 258, @@ -21,7 +21,7 @@ "column": 35, "line": 13 }, - "message": "A11y: noninteractive element cannot have positive tabIndex value", + "message": "A11y: noninteractive element cannot have nonnegative tabIndex value", "pos": 279, "start": { "character": 279, @@ -36,7 +36,7 @@ "column": 24, "line": 14 }, - "message": "A11y: noninteractive element cannot have positive tabIndex value", + "message": "A11y: noninteractive element cannot have nonnegative tabIndex value", "pos": 315, "start": { "character": 315, @@ -51,7 +51,7 @@ "column": 26, "line": 15 }, - "message": "A11y: noninteractive element cannot have positive tabIndex value", + "message": "A11y: noninteractive element cannot have nonnegative tabIndex value", "pos": 340, "start": { "character": 340,