---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: invalid.jsx
---
# Input
```jsx
/* Interactive elements */
;
;
/* All flavors of input */
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
/* End all flavors of input */
;
;
;
;
;
/* Interactive elements */
;
;
/* All flavors of input */
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
/* End all flavors of input */
;
;
;
;
;
```
# Diagnostics
```
invalid.jsx:2:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
1 │ /* Interactive elements */
> 2 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 │ ;
4 │ /* All flavors of input */
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
2 │ ;
│ -----------
```
```
invalid.jsx:3:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
1 │ /* Interactive elements */
2 │ ;
> 3 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 │ /* All flavors of input */
5 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
3 │ ;
│ -----------
```
```
invalid.jsx:5:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
3 │ ;
4 │ /* All flavors of input */
> 5 │ ;
│ ^^^^^^^^^^^^^^^^^^^^
6 │ ;
7 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
5 │ ;
│ -----------
```
```
invalid.jsx:6:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
4 │ /* All flavors of input */
5 │ ;
> 6 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 │ ;
8 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
6 │ ;
│ -----------
```
```
invalid.jsx:7:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
5 │ ;
6 │ ;
> 7 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 │ ;
9 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
7 │ ;
│ -----------
```
```
invalid.jsx:8:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
6 │ ;
7 │ ;
> 8 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 │ ;
10 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
8 │ ;
│ -----------
```
```
invalid.jsx:9:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
7 │ ;
8 │ ;
> 9 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 │ ;
11 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
9 │ ;
│ -----------
```
```
invalid.jsx:10:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
8 │ ;
9 │ ;
> 10 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 │ ;
12 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
10 │ ;
│ -----------
```
```
invalid.jsx:11:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
9 │ ;
10 │ ;
> 11 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 │ ;
13 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
11 │ ;
│ -----------
```
```
invalid.jsx:12:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
10 │ ;
11 │ ;
> 12 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 │ ;
14 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
12 │ ;
│ -----------
```
```
invalid.jsx:13:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
11 │ ;
12 │ ;
> 13 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 │ ;
15 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
13 │ ;
│ -----------
```
```
invalid.jsx:14:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
12 │ ;
13 │ ;
> 14 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 │ ;
16 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
14 │ ;
│ -----------
```
```
invalid.jsx:15:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
13 │ ;
14 │ ;
> 15 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 │ ;
17 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
15 │ ;
│ -----------
```
```
invalid.jsx:16:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
14 │ ;
15 │ ;
> 16 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 │ ;
18 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
16 │ ;
│ -----------
```
```
invalid.jsx:17:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
15 │ ;
16 │ ;
> 17 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 │ ;
19 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
17 │ ;
│ -----------
```
```
invalid.jsx:18:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
16 │ ;
17 │ ;
> 18 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 │ ;
20 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
18 │ ;
│ -----------
```
```
invalid.jsx:19:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
17 │ ;
18 │ ;
> 19 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 │ ;
21 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
19 │ ;
│ -----------
```
```
invalid.jsx:20:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
18 │ ;
19 │ ;
> 20 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 │ ;
22 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
20 │ ;
│ -----------
```
```
invalid.jsx:21:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
19 │ ;
20 │ ;
> 21 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 │ ;
23 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
21 │ ;
│ -----------
```
```
invalid.jsx:22:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
20 │ ;
21 │ ;
> 22 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 │ ;
24 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
22 │ ;
│ -----------
```
```
invalid.jsx:23:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
21 │ ;
22 │ ;
> 23 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 │ ;
25 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
23 │ ;
│ -----------
```
```
invalid.jsx:24:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
22 │ ;
23 │ ;
> 24 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 │ ;
26 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
24 │ ;
│ -----------
```
```
invalid.jsx:25:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
23 │ ;
24 │ ;
> 25 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 │ ;
27 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
25 │ ;
│ -----------
```
```
invalid.jsx:26:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
24 │ ;
25 │ ;
> 26 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 │ ;
28 │ /* End all flavors of input */
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
26 │ ;
│ -----------
```
```
invalid.jsx:27:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
25 │ ;
26 │ ;
> 27 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 │ /* End all flavors of input */
29 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
27 │ ;
│ -----------
```
```
invalid.jsx:29:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
27 │ ;
28 │ /* End all flavors of input */
> 29 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^
30 │ ;
31 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
29 │ ;
│ -----------
```
```
invalid.jsx:30:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
28 │ /* End all flavors of input */
29 │ ;
> 30 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 │ ;
32 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
30 │ ;
│ -----------
```
```
invalid.jsx:31:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
29 │ ;
30 │ ;
> 31 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 │ ;
33 │
;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
31 │ ;
│ -----------
```
```
invalid.jsx:32:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
30 │ ;
31 │ ;
> 32 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 │
;
34 │ /* Interactive elements */
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
32 │ ;
│ -----------
```
```
invalid.jsx:33:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
31 │ ;
32 │ ;
> 33 │
;
│ ^^^^^^^^^^^^^^^^^
34 │ /* Interactive elements */
35 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
33 │
;
│ -----------
```
```
invalid.jsx:35:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
33 │
;
34 │ /* Interactive elements */
> 35 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 │ ;
37 │ /* All flavors of input */
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
35 │ ;
│ ----------------
```
```
invalid.jsx:36:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
34 │ /* Interactive elements */
35 │ ;
> 36 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 │ /* All flavors of input */
38 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
36 │ ;
│ ----------------
```
```
invalid.jsx:38:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
36 │ ;
37 │ /* All flavors of input */
> 38 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
39 │ ;
40 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
38 │ ;
│ ----------------
```
```
invalid.jsx:39:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
37 │ /* All flavors of input */
38 │ ;
> 39 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 │ ;
41 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
39 │ ;
│ ----------------
```
```
invalid.jsx:40:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
38 │ ;
39 │ ;
> 40 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 │ ;
42 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
40 │ ;
│ ----------------
```
```
invalid.jsx:41:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
39 │ ;
40 │ ;
> 41 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 │ ;
43 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
41 │ ;
│ ----------------
```
```
invalid.jsx:42:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
40 │ ;
41 │ ;
> 42 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 │ ;
44 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
42 │ ;
│ ----------------
```
```
invalid.jsx:43:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
41 │ ;
42 │ ;
> 43 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 │ ;
45 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
43 │ ;
│ ----------------
```
```
invalid.jsx:44:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
42 │ ;
43 │ ;
> 44 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 │ ;
46 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
44 │ ;
│ ----------------
```
```
invalid.jsx:45:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
43 │ ;
44 │ ;
> 45 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 │ ;
47 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
45 │ ;
│ ----------------
```
```
invalid.jsx:46:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
44 │ ;
45 │ ;
> 46 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47 │ ;
48 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
46 │ ;
│ ----------------
```
```
invalid.jsx:47:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
45 │ ;
46 │ ;
> 47 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 │ ;
49 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
47 │ ;
│ ----------------
```
```
invalid.jsx:48:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
46 │ ;
47 │ ;
> 48 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 │ ;
50 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
48 │ ;
│ ----------------
```
```
invalid.jsx:49:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
47 │ ;
48 │ ;
> 49 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 │ ;
51 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
49 │ ;
│ ----------------
```
```
invalid.jsx:50:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
48 │ ;
49 │ ;
> 50 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 │ ;
52 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
50 │ ;
│ ----------------
```
```
invalid.jsx:51:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
49 │ ;
50 │ ;
> 51 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 │ ;
53 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
51 │ ;
│ ----------------
```
```
invalid.jsx:52:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
50 │ ;
51 │ ;
> 52 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53 │ ;
54 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
52 │ ;
│ ----------------
```
```
invalid.jsx:53:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
51 │ ;
52 │ ;
> 53 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 │ ;
55 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
53 │ ;
│ ----------------
```
```
invalid.jsx:54:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
52 │ ;
53 │ ;
> 54 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 │ ;
56 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
54 │ ;
│ ----------------
```
```
invalid.jsx:55:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
53 │ ;
54 │ ;
> 55 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 │ ;
57 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
55 │ ;
│ ----------------
```
```
invalid.jsx:56:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
54 │ ;
55 │ ;
> 56 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 │ ;
58 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
56 │ ;
│ ----------------
```
```
invalid.jsx:57:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
55 │ ;
56 │ ;
> 57 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 │ ;
59 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
57 │ ;
│ ----------------
```
```
invalid.jsx:58:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
56 │ ;
57 │ ;
> 58 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59 │ ;
60 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
58 │ ;
│ ----------------
```
```
invalid.jsx:59:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
57 │ ;
58 │ ;
> 59 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 │ ;
61 │ /* End all flavors of input */
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
59 │ ;
│ ----------------
```
```
invalid.jsx:60:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
58 │ ;
59 │ ;
> 60 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 │ /* End all flavors of input */
62 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
60 │ ;
│ ----------------
```
```
invalid.jsx:62:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
60 │ ;
61 │ /* End all flavors of input */
> 62 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 │ ;
64 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
62 │ ;
│ ----------------
```
```
invalid.jsx:63:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
61 │ /* End all flavors of input */
62 │ ;
> 63 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 │ ;
65 │ ;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
63 │ ;
│ ----------------
```
```
invalid.jsx:64:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
62 │ ;
63 │ ;
> 64 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65 │ ;
66 │
;
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
64 │ ;
│ ----------------
```
```
invalid.jsx:65:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
63 │ ;
64 │ ;
> 65 │ ;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 │
;
67 │
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
65 │ ;
│ ----------------
```
```
invalid.jsx:66:1 lint/a11y/noInteractiveElementToNoninteractiveRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
! Interactive elements should not be assigned non-interactive roles.
64 │ ;
65 │ ;
> 66 │
;
│ ^^^^^^^^^^^^^^^^^^^^^^
67 │
i WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element.
i Wrap your interactive element in a
with the desired role or put the content inside your interactive element.
i Unsafe fix: Remove the role attribute.
66 │