File tree 1 file changed +3
-0
lines changed 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ If a static element has an event handler for the sole purpose of capturing event
54
54
This ` role ` has no effect on static elements, but it clarifies your intent.
55
55
56
56
### References
57
+
57
58
1 . [ WAI-ARIA ` role ` attribute] ( https://www.w3.org/TR/wai-aria-1.1/#usage_intro )
58
59
1 . [ WAI-ARIA Authoring Practices Guide - Design Patterns and Widgets] ( https://www.w3.org/TR/wai-aria-practices-1.1/#aria_ex )
59
60
1 . [ Fundamental Keyboard Navigation Conventions] ( https://www.w3.org/TR/wai-aria-practices-1.1/#kbd_generalnav )
@@ -82,13 +83,15 @@ You may configure which handler props should be taken into account when applying
82
83
Adjust the list of handler prop names in the handlers array to increase or decrease the coverage surface of this rule in your codebase.
83
84
84
85
### Succeed
86
+
85
87
``` jsx
86
88
< button onClick= {() => {}} className= " foo" / >
87
89
< div className= " foo" onClick= {() => {}} role= " button" / >
88
90
< input type= " text" onClick= {() => {}} / >
89
91
```
90
92
91
93
### Fail
94
+
92
95
``` jsx
93
96
< div onClick= {() => {}} / >
94
97
```
You can’t perform that action at this time.
0 commit comments