We need to be able to add a class to the overlay portion of the css.. for example:
<Modal className="foo">...</Modal>
should render as:
<div class="ReactModal__Overlay ReactModal__Overlay--foo">
<div class="ReactModal__Content ReactModal__Content--foo">
...
</div>
</iv>
@cavneb your use case is now supported, with a slight change:
<Modal className="myContentClass" overlayClassName="myOverlayClass"/>
Will result in:
<div class="ReactModal__Overlay myOverlayClass">
<div class="ReactModal__Content myContentClass">
...
</div>
</div>
could we support a style prop for inline CSS in JS? I'm talking about:
var modalStyles = {
left: 80,
right: 80
};
return <Modal style={modalStyles} />;
Most helpful comment
@cavneb your use case is now supported, with a slight change:
Will result in: