Skip to content

Commit 77b9870

Browse files
author
Trevor Burnham
committed
[Docs] Add newlines below headings
1 parent 8244e43 commit 77b9870

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/rules/no-static-element-interactions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ If a static element has an event handler for the sole purpose of capturing event
5454
This `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
8283
Adjust 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
```

0 commit comments

Comments
 (0)