Skip to content

Commit

Permalink
[Docs] Add newlines below headings
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Burnham committed Jan 10, 2019
1 parent 8244e43 commit 77b9870
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/rules/no-static-element-interactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ If a static element has an event handler for the sole purpose of capturing event
This `role` has no effect on static elements, but it clarifies your intent.

### References

1. [WAI-ARIA `role` attribute](https://www.w3.org/TR/wai-aria-1.1/#usage_intro)
1. [WAI-ARIA Authoring Practices Guide - Design Patterns and Widgets](https://www.w3.org/TR/wai-aria-practices-1.1/#aria_ex)
1. [Fundamental Keyboard Navigation Conventions](https://www.w3.org/TR/wai-aria-practices-1.1/#kbd_generalnav)
Expand Down Expand Up @@ -82,13 +83,15 @@ You may configure which handler props should be taken into account when applying
Adjust the list of handler prop names in the handlers array to increase or decrease the coverage surface of this rule in your codebase.

### Succeed

```jsx
<button onClick={() => {}} className="foo" />
<div className="foo" onClick={() => {}} role="button" />
<input type="text" onClick={() => {}} />
```

### Fail

```jsx
<div onClick={() => {}} />
```

0 comments on commit 77b9870

Please sign in to comment.