File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ element will be applied as the value of `aria-activedescendant` on the input
15
15
element.
16
16
17
17
Because an element with ` aria-activedescendant ` must be tabbable, it must either
18
- have an inherent ` tabIndex ` of zero or declare a ` tabIndex ` of zero with the ` tabIndex `
19
- attribute.
18
+ have an inherent ` tabIndex ` of zero or declare a ` tabIndex ` attribute.
20
19
21
20
## Rule details
22
21
@@ -34,16 +33,16 @@ This rule takes no arguments.
34
33
< div aria- activedescendant= {someID} tabIndex= {0 } / >
35
34
< div aria- activedescendant= {someID} tabIndex= " 0" / >
36
35
< div aria- activedescendant= {someID} tabIndex= {1 } / >
36
+ < div aria- activedescendant= {someID} tabIndex= {- 1 } / >
37
+ < div aria- activedescendant= {someID} tabIndex= " -1" / >
37
38
< input aria- activedescendant= {someID} / >
38
39
< input aria- activedescendant= {someID} tabIndex= {0 } / >
40
+ < input aria- activedescendant= {someID} tabIndex= {- 1 } / >
39
41
```
40
42
41
43
### Fail
42
44
``` jsx
43
45
< div aria- activedescendant= {someID} / >
44
- < div aria- activedescendant= {someID} tabIndex= {- 1 } / >
45
- < div aria- activedescendant= {someID} tabIndex= " -1" / >
46
- < input aria- activedescendant= {someID} tabIndex= {- 1 } / >
47
46
```
48
47
49
48
## Accessibility guidelines
You can’t perform that action at this time.
0 commit comments