Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass inline styles? #66

Closed
devmanhinton opened this issue Sep 7, 2015 · 3 comments
Closed

Pass inline styles? #66

devmanhinton opened this issue Sep 7, 2015 · 3 comments

Comments

@devmanhinton
Copy link

Awesome library thanks for building!

Is there a way to pass on inline styles to the modal overlay?

I am using Radium / trying to avoid using css etc...

ie., this:

<Modal style={myStyles}.../>

would pass the styles onto the modal overlay. I think this makes sense in react speak

@mzabriskie
Copy link
Member

You can currently pass style prop, but it is applied to the modal content, not the overlay. Could add support for a overlayStyle prop, which would augment the overlayClassName prop.

@devmanhinton
Copy link
Author

Sorry for the long delay - made a work around and kept going (ie., just added some scss 😀 )

That would solve my problem. Not sure how big of a use case that is for you. Feel free to close this issue. It was meant only to ask the above question and also let you know this might be a use case.

@MinThaMie
Copy link

I think it would be awesome to have also overlayStyle since React and inlineStyles are more and more common practice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants