[fix] say "nonnegative" instead of "positive" tabIndex for `a11y-no-noninteractive-tabindex` (#8126)

pull/7790/head
wackbyte 2 years ago committed by GitHub
parent 06648d1f65
commit 094483b397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
<!-- A11y: noninteractive element cannot have positive tabIndex value -->
<!-- A11y: noninteractive element cannot have nonnegative tabIndex value -->
<div tabindex='0' />
```

@ -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',

@ -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,

Loading…
Cancel
Save