-
Notifications
You must be signed in to change notification settings - Fork 59
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
Inject styles in the opened window? #24
Comments
Same, hence the bump. If you found a way, some directions would be appreciated. |
See issue #15 |
I added a means for getting access to the popout window in my branch. This will probably allow you to inject styles into the document or body. To get access to the window, use a function for children like so: <PopoutWindow {...}>
{popoutWindow => (
<MyComponent popoutWindow={popoutWindow} />
)}
</PopoutWindow> Within your componentWillMount() you could set popout.document.body.style.backgroundColor. etc. It's a bit if a round about way (not what I added the function behaviour for) but might do for now. I noticed that this project has stagnated since Feb this year. I would be willing to take it over, so could add this functionality via a nicer way if you think it would be useful? |
Closing as duplicate of #15 |
Hey @JakeGinnivan,
First of all, thanks for the component!
Is there a way to inject styles in the opened window? I'd like to style the body for example to remove the default margin it has.
Thanks.
The text was updated successfully, but these errors were encountered: