Skip to content

Commit 2ae092a

Browse files
jitinmaherdiasbruno
authored andcommittedDec 10, 2018
[fixed] Allow empty classNames for body (#720)
* [fixed] Allow empty classNames for body * Regenerate package-lock.json to fix event stream issue
1 parent 8d8f476 commit 2ae092a

File tree

5 files changed

+504
-720
lines changed

5 files changed

+504
-720
lines changed
 

‎docs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import ReactModal from 'react-modal';
6666
className="ReactModal__Content"
6767
/*
6868
String className to be applied to the document.body (must be a constant string).
69+
This attribute when set as `null` doesn't add any class to document.body.
6970
See the `Styles` section for more details.
7071
*/
7172
bodyOpenClassName="ReactModal__Body--open"

‎docs/styles/classes.md

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ require a complex system to manage which class name should be added to or
4848
removed from `document.body` from which modal (if using multiple modals
4949
simultaneously). The default value is `ReactModal__Body--open`.
5050

51+
`bodyOpenClassName` when set as `null` doesn't add any class to `document.body`.
52+
5153
`bodyOpenClassName` can support adding multiple classes to `document.body` when
5254
the modal is open. Add as many class names as you desire, delineated by spaces.
5355

0 commit comments

Comments
 (0)