Skip to content
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

Fix media-breakpoint-between #23997

Merged
merged 3 commits into from
Oct 3, 2017
Merged

Fix media-breakpoint-between #23997

merged 3 commits into from
Oct 3, 2017

Conversation

trentclowater
Copy link
Contributor

When compiling .scss that uses media-breakpoint between with xs as the lower bound or xl as the upper bound, a compilation error can occur due to $min/$max being set to null, or the resulting .css can be invalid (see issue #23965).

(This is basically the same fix that was applied to media-breakpoint-only a short time ago).

When compiling .scss that uses media-breakpoint between with xs as the lower bound or xl as the upper bound, a compilation error can occur due to $min/$max being set to null, or the resulting .css can be invalid (see issue #23965).

(This is basically the same fix that was applied to media-breakpoint-only a short time ago).
@@ -81,8 +81,18 @@
$min: breakpoint-min($lower, $breakpoints);
$max: breakpoint-max($upper, $breakpoints);

@media (min-width: $min) and (max-width: $max) {
@content;
@if $min != null and $max !=null {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$max !=null should be written with a single space on each side of the operator: $max != null

Make houndci-bot recommended changes.
@mdo mdo removed the on-hold label Oct 3, 2017
@mdo mdo merged commit 7a7589f into twbs:v4-dev Oct 3, 2017
This was referenced Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants