-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Custom breakpoints + grid-margin-x = incorrect size ordering #10468
Comments
Ah interesting... this looks like an interaction with the responsive gutters. What does your |
@kball thanks for responding to this, much appreciated As requested :-) $grid-margin-gutters: (
small: 30px,
medium: 36px,
large: 40px
); |
I got the same problem with custom breakpoints.
|
@ncoden @wgstjf Any movement on this?. I just discovered this issue as well with 6.4.4-rc1. We have two breakpoints for small and large so far. And on very large screens, the small breakpoint is what's being used to calculate gutters. Without a workaround, this might keep us from making our grid system completely semantic. |
…XY Grid foundation#10468 With margin gutters, a cell width is defined with its gutter. This is why we have to readjust all sizes and not only `.cell` when applying the new gutter in a bigger breakpoint. This must include all sizes for smaller breakpoints too. Before this commit there was an optimization that prevent gutters for smaller breakpoints without a new gutter defined to be regenerated. This can seems logical since no gutter was generated for this breakpoint so there is nothing to readjust. However, because the gutter is defined _with the width/height_, the readjusted width/height of readjusted gutters (with a custom gutter) overrides the width/height of bigger non-readjusted (without a custom gutter) breakpoint. Changes: * Readjust gutters for all breakpoints even without new gutter defined * Add explainaitions Closes foundation#10468
@wgstjf @timluigjes @AtlantaJones Thanks for the bump. See #11117 |
…en-10468 fix: fix cell widths overridden by readjusted smaller breakpoints in XY Grid #10468
…overridden-10468 for v6.5.0 2b5aaa7 fix: fix cell widths overridden by readjusted smaller breakpoints in XY Grid foundation#10468 Signed-off-by: Nicolas Coden <[email protected]>
Hi guys,
Not sure if we have discovered a bug with grid-margin-x in 6.4.1 or whether we've got something wrong. Here's the situation...we have custom breakpoints and custom breakpoint classes as below:
When using grid-margin-x we are finding that the 'small' breakpoint is overriding our custom one 'mediumx'. Looking at the compiled css it looks like the ordering is messed up, with the 'small' breakpoint stuff appearing (or at least being repeated) after the 'mediumx' styles thus leading to the overriding of what should be the correct sizes etc. Below is a snippet of the compiled css showing the issue...
and a screenshot from Chrome Dev Tools
Any help, as always, greatly appreciated.
Cheers
Will
The text was updated successfully, but these errors were encountered: