Skip to content

Commit

Permalink
[fixed] Allow empty classNames for body (#720)
Browse files Browse the repository at this point in the history
* [fixed] Allow empty classNames for body

* Regenerate package-lock.json to fix event stream issue
  • Loading branch information
jitinmaher authored and diasbruno committed Dec 10, 2018
1 parent 8d8f476 commit 2ae092a
Show file tree
Hide file tree
Showing 5 changed files with 504 additions and 720 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import ReactModal from 'react-modal';
className="ReactModal__Content"
/*
String className to be applied to the document.body (must be a constant string).
This attribute when set as `null` doesn't add any class to document.body.
See the `Styles` section for more details.
*/
bodyOpenClassName="ReactModal__Body--open"
Expand Down
2 changes: 2 additions & 0 deletions docs/styles/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ require a complex system to manage which class name should be added to or
removed from `document.body` from which modal (if using multiple modals
simultaneously). The default value is `ReactModal__Body--open`.

`bodyOpenClassName` when set as `null` doesn't add any class to `document.body`.

`bodyOpenClassName` can support adding multiple classes to `document.body` when
the modal is open. Add as many class names as you desire, delineated by spaces.

Expand Down
Loading

0 comments on commit 2ae092a

Please sign in to comment.