Skip to content

Commit e015dc6

Browse files
committed
Use pull request foundation#11117 from ncoden/fix/xy-grid-cell-width-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]>
1 parent 40d995d commit e015dc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scss/xy-grid/_classes.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@
146146
@include -zf-each-breakpoint() {
147147

148148
// This is purely for responsive gutters - the margin grid has to go back and adjust widths (or heights)
149-
// for prior breakpoints based on the responsive gutter.
149+
// for all prior breakpoints.
150+
// As their gutter is defined with their width/height, even breakpoint without a new margin must be
151+
// generated to not having their width/height overrided by re-adjusted smaller breakpoints.
150152
@if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
151153
@each $bp in -zf-breakpoints-less-than($-zf-size) {
152-
@if(map-has-key($grid-margin-gutters, $bp)) {
153-
@include -xy-breakpoint-cell-classes($bp, $-zf-size, $vertical);
154-
}
154+
@include -xy-breakpoint-cell-classes($bp, $-zf-size, $vertical);
155155
}
156156
}
157157

0 commit comments

Comments
 (0)