File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 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
5454This ` role ` has no effect on static elements, but it clarifies your intent.
5555
5656### References
57+
5758 1 . [ WAI-ARIA ` role ` attribute] ( https://www.w3.org/TR/wai-aria-1.1/#usage_intro )
5859 1 . [ WAI-ARIA Authoring Practices Guide - Design Patterns and Widgets] ( https://www.w3.org/TR/wai-aria-practices-1.1/#aria_ex )
5960 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
8283Adjust the list of handler prop names in the handlers array to increase or decrease the coverage surface of this rule in your codebase.
8384
8485### Succeed
86+
8587``` jsx
8688< button onClick= {() => {}} className= " foo" / >
8789< div className= " foo" onClick= {() => {}} role= " button" / >
8890< input type= " text" onClick= {() => {}} / >
8991```
9092
9193### Fail
94+
9295``` jsx
9396< div onClick= {() => {}} / >
9497```
You can’t perform that action at this time.
0 commit comments