-
Notifications
You must be signed in to change notification settings - Fork 23
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
Allow to provide rich object props to StylesProvider #27
Conversation
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
b86c628
to
db12bb3
Compare
db12bb3
to
1e4259a
Compare
There was a problem hiding this 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?
e2e-tests/development-runtime/plugins/gatsby-plugin-top-layout/top-layout.js
Outdated
Show resolved
Hide resolved
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 :) |
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