Skip to content

Commit

Permalink
Merge pull request #11117 from ncoden/fix/xy-grid-cell-width-overridd…
Browse files Browse the repository at this point in the history
…en-10468

fix: fix cell widths overridden by readjusted smaller breakpoints in XY Grid #10468
  • Loading branch information
ncoden authored Apr 3, 2018
2 parents ed581e1 + 2b5aaa7 commit 9310c7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scss/xy-grid/_classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@
@include -zf-each-breakpoint() {

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

Expand Down

0 comments on commit 9310c7b

Please sign in to comment.