From 8e5f5b78d1c5ad62ab3a719bdf3664333d2f2c10 Mon Sep 17 00:00:00 2001 From: Clay Diffrient Date: Thu, 8 Sep 2016 08:21:40 -0600 Subject: [PATCH] [fixed] Fix incorrect details in the README --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fbfc5749..075b93b3 100644 --- a/README.md +++ b/README.md @@ -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); @@ -84,6 +85,9 @@ Modal.setAppElement(appElement); Modal.setAppElement('#your-app-element'); */ +var appElement = document.getElementById('your-app-element'); + + const customStyles = { content : {