File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,11 @@ var React = require('react');
72
72
var ReactDOM = require (' react-dom' );
73
73
var Modal = require (' react-modal' );
74
74
75
- var appElement = document .getElementById (' your-app-element' );
76
75
77
76
/*
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:
79
80
80
81
* element
81
82
Modal.setAppElement(appElement);
@@ -84,6 +85,9 @@ Modal.setAppElement(appElement);
84
85
Modal.setAppElement('#your-app-element');
85
86
86
87
*/
88
+ var appElement = document .getElementById (' your-app-element' );
89
+
90
+
87
91
88
92
const customStyles = {
89
93
content : {
You can’t perform that action at this time.
0 commit comments