We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d8e5a0 commit e9fd43dCopy full SHA for e9fd43d
README.md
@@ -73,6 +73,17 @@ This doesn't affect styling as no styles are applied to this element by default.
73
The default styles above are available on `Modal.defaultStyles`. Changes to this
74
object will apply to all instances of the modal.
75
76
+### Body class
77
+When the modal is opened a `ReactModal__Body--open` class is added to the `body` tag.
78
+You can use this to remove scrolling on the the body while the modal is open.
79
+
80
+```CSS
81
+/* Remove scroll on the body when react-modal is open */
82
+.ReactModal__Body--open {
83
+ overflow: hidden;
84
+}
85
+```
86
87
## Examples
88
Inside an app:
89
0 commit comments