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 staticMediaQuery
to ScrollyCoding via props
#390
Comments
Yes, that's not implemented right now. I'll try to make the second option work soon. It will be consistent with other settings like |
pomber
changed the title
Pass
Pass Jun 21, 2023
codeConfig
to ScrollyCoding via propsstaticMediaQuery
to ScrollyCoding via props
pomber
changed the title
Pass
Pass Jun 21, 2023
staticMediaQuery
to ScrollyCoding via propsstaticMediaQuery
to ScrollyCoding via props
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working on a docs site that has multiple different page layouts. Depending on the page, I want to be able to override the
codeConfig
options on the component level. Specifically, I'm wanting to change the value ofstaticMediaQuery
for theScrollycoding
component depending on which page layout is being used. However, passing acodeConfig
prop appears to always be overridden by the config values at the plugin configuration level.Example expected implementation
Neither of these attempts seem to have any effect.
Example repo
I'm running into this issue both in the site I'm working on as well as in this minimal reproducible example:
I've added a
staticMediaQuery
both to thenext.config.js
and a differing media query in theCH.Scrollycoding
component's props in thescrollycoding.mdx
file.StackBlitz link
The text was updated successfully, but these errors were encountered: