Skip to content

Commit

Permalink
[fixed] Fix incorrect details in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
claydiffrient authored Sep 8, 2016
1 parent e5b0181 commit 8e5f5b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ var React = require('react');
var ReactDOM = require('react-dom');
var Modal = require('react-modal');

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

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



const customStyles = {
content : {
Expand Down

0 comments on commit 8e5f5b7

Please sign in to comment.