You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/styles/classes.md
+4
Original file line number
Diff line number
Diff line change
@@ -2,5 +2,9 @@
2
2
3
3
Sometimes it may be preferable to use CSS classes rather than inline styles. You can use the `className` and `overlayClassName` props to specify a given CSS class for each of those.
4
4
You can override the default class that is added to `document.body` when the modal is open by defining a property `bodyOpenClassName`.
5
+
6
+
It's required that `bodyOpenClassName` must be `constant string`, otherwise we would end up with a complex system to manage which class name
7
+
should appear or be removed from `document.body` from which modal (if using multiple modals simultaneously).
8
+
5
9
Note: If you provide those props all default styles will not be applied, leaving all styles under control of the CSS class.
6
10
The `portalClassName` can also be used however there are no styles by default applied
0 commit comments