You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,9 @@ To install the stable version you can use [npm](https://npmjs.org/) or [yarn](ht
27
27
28
28
## Usage
29
29
30
-
The Modal object has two required props:
30
+
The Modal object has one required prop:
31
31
32
32
-`isOpen` to render its children.
33
-
-`contentLabel` to improve accessibility, since `v1.6.0`.
34
33
35
34
Example:
36
35
@@ -48,6 +47,8 @@ Example:
48
47
</Modal>
49
48
```
50
49
50
+
> Use the prop `contentLabel` which adds `aria-label` to the modal if there is no label text visible on the screen, otherwise specify the element including the label text using `aria-labelledby`
0 commit comments