Commit 216c7ea2 authored by Sander Melnikov's avatar Sander Melnikov Committed by XhmikosR
Browse files

Fix breakpoint mixins for custom breakpoint maps (#25264)

When using the `media-breakpoint-between` or `media-breakpoint-only`
mixins with a custom breakpoint map – not defined as `$grid-breakpoints`
– the mixin incorrectly defaults back to the global `$grid-breakpoints`
map in certain situations. This commit correctly passes on the
`$breakpoints` argument to the other mixins called within the block.
parent f4bf0542
Showing with 4 additions and 4 deletions
+4 -4
......@@ -90,11 +90,11 @@
@content;
}
} @else if $max == null {
@include media-breakpoint-up($lower) {
@include media-breakpoint-up($lower, $breakpoints) {
@content;
}
} @else if $min == null {
@include media-breakpoint-down($upper) {
@include media-breakpoint-down($upper, $breakpoints) {
@content;
}
}
......@@ -112,11 +112,11 @@
@content;
}
} @else if $max == null {
@include media-breakpoint-up($name) {
@include media-breakpoint-up($name, $breakpoints) {
@content;
}
} @else if $min == null {
@include media-breakpoint-down($name) {
@include media-breakpoint-down($name, $breakpoints) {
@content;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment