-
Notifications
You must be signed in to change notification settings - Fork 68
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
theme not passing to all Grid,Rows,Col as desired... #95
Comments
I cannot reproduce your issue with In shiny, we're using a patched version of the Here's our Grid story. Switch between the "Default" and "Oppskrift" themes in the top navigation bar to see that the gutterWidth changes dynamically. |
Here's our modified |
Do you still have issues after #87 was merged? |
@misund I'm experiencing this issue currently on the latest version - unless I place theme={theme} on every single child row and column (where theme = the provided example theme object in the Readme), the props of theme.flexboxgrid.gutterWidth and theme.flexboxgrid.outerMargin don't actually get read or used. This includes if I use container="fluid". If I place theme on every single , it all works. |
desired outcome:
All descendents of which are Grid, Rows and Cols take config from theme in the
index.js
fileactual behavior:
default gutterwidth and outerMargin are passed unless theme is directly called.
So we are presently passing theme over and over again down the app.... (see portion of code below)
What could I/we do differently to get the desired outcome?
in our
/index.js
in our
App.js
lots ofprops
passing using Styled-ComponentswithTheme(Component)
just to explain the madness; it continues to each child component
this is
login/index.js
We'd need to continue with all of and its
blah
May be related to:
#84
#19
The text was updated successfully, but these errors were encountered: