Skip to content

Commit 8e5f5b7

Browse files
[fixed] Fix incorrect details in the README
1 parent e5b0181 commit 8e5f5b7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ var React = require('react');
7272
var ReactDOM = require('react-dom');
7373
var Modal = require('react-modal');
7474

75-
var appElement = document.getElementById('your-app-element');
7675

7776
/*
78-
By default the modal is anchored to document.body. All of the following overrides are available.
77+
The app element allows you to specify the portion of your app that should be hidden (via aria-hidden)
78+
to prevent assistive technologies such as screenreaders from reading content outside of the content of
79+
your modal. It can be specified in the following ways:
7980
8081
* element
8182
Modal.setAppElement(appElement);
@@ -84,6 +85,9 @@ Modal.setAppElement(appElement);
8485
Modal.setAppElement('#your-app-element');
8586
8687
*/
88+
var appElement = document.getElementById('your-app-element');
89+
90+
8791

8892
const customStyles = {
8993
content : {

0 commit comments

Comments
 (0)