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

Allow to provide rich object props to StylesProvider #27

Merged
merged 12 commits into from
Jun 26, 2019

Conversation

oliviertassinari
Copy link
Contributor

@oliviertassinari oliviertassinari commented Jun 22, 2019

This pull request introduces a new pathToStylesProvider option. The is a string that describes the location of a file that returns the props to apply to the StylesProvider component.

Closes #20
Closes #19

magnusriga and others added 10 commits June 22, 2019 23:14
feat: Added ability to define custom insertion point

closes hupe1980#19

feat: added ability to inject style tags at custom point in head

also updated README to explain how it is done

closes hupe1980#19

fix: add option to specify jss config

closes hupe1980#19

.gitignore fix

fix: changed config to match stylesProvider props

.gitignore fix

feat: added ability to inject style tags at custom point in head

also updated README to explain how it is done

closes hupe1980#19

fix: add option to specify jss config

closes hupe1980#19

.gitignore fix

fix: changed config to match stylesProvider props
1. fixed unit tests with jest virtual mocking
2. Made sure all quotations use backtick (single ticks for imports)
3. Made sure the style sheet generated with gatsby-ssr.js are passed the same options as the style sheet added by gatsby-browser.js
@oliviertassinari oliviertassinari changed the title Custom insertion point [WIP] Custom insertion point Jun 22, 2019
@oliviertassinari oliviertassinari force-pushed the custom-insertion-point branch 9 times, most recently from b86c628 to db12bb3 Compare June 22, 2019 22:34
@oliviertassinari oliviertassinari changed the title [WIP] Custom insertion point Custom insertion point Jun 22, 2019
@oliviertassinari oliviertassinari changed the title Custom insertion point Allow custom insertion point Jun 22, 2019
@oliviertassinari oliviertassinari changed the title Allow custom insertion point Allow to provide rich object props to StylesProvider Jun 22, 2019
Copy link
Owner

@hupe1980 hupe1980 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oliviertassinari @magnusriga Nice job!
@magnusriga Do you have any comments?

@hupe1980 hupe1980 merged commit 1b5b387 into hupe1980:master Jun 26, 2019
@magnusriga
Copy link

magnusriga commented Jun 27, 2019

I have not had the chance to review the new PR due to another project at work. I am sure you did a fine job wrapping it up. Looking forward to testing it.

Any idea why it GitHub didn't list me as contributor @oliviertassinari / @hupe1980 ? I was hoping to tick that box, as up until now I had only published my own projects and not collaborated on an open source one :)

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

Successfully merging this pull request may close these issues.

Using jss.insertionPoint instead of injectFirst
3 participants