@carbon/layout 10.8.0-rc.0 → 10.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/sass.md CHANGED
@@ -272,7 +272,6 @@ Check to see if the given breakpoint name
272
272
  - **Returns**: `Bool`
273
273
  - **Used by**:
274
274
  - [carbon--breakpoint-up [mixin]](#carbon--breakpoint-up-mixin)
275
- - [carbon--breakpoint-down [mixin]](#carbon--breakpoint-down-mixin)
276
275
 
277
276
  ### ✅carbon--largest-breakpoint-name [function]
278
277
 
@@ -391,12 +390,8 @@ Generate a media query for the maximum width of the given styles
391
390
  } @else if map-has-key($breakpoints, $name) {
392
391
  $breakpoint: map-get($breakpoints, $name);
393
392
  $width: map-get($breakpoint, width);
394
- @if carbon--is-smallest-breakpoint($name, $breakpoints) {
393
+ @media (max-width: $width) {
395
394
  @content;
396
- } @else {
397
- @media (max-width: $width) {
398
- @content;
399
- }
400
395
  }
401
396
  } @else {
402
397
  @error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';
@@ -414,8 +409,6 @@ Generate a media query for the maximum width of the given styles
414
409
  | `$breakpoints` | A map of breakpoints where the key is the name | `Map` | `$carbon--grid-breakpoints` |
415
410
 
416
411
  - **Group**: [@carbon/layout](#carbonlayout)
417
- - **Requires**:
418
- - [carbon--is-smallest-breakpoint [function]](#carbon--is-smallest-breakpoint-function)
419
412
  - **Used by**:
420
413
  - [carbon--breakpoint-between [mixin]](#carbon--breakpoint-between-mixin)
421
414
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/layout",
3
3
  "description": "Layout helpers for digital and software products using the Carbon Design System",
4
- "version": "10.8.0-rc.0",
4
+ "version": "10.8.1",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -25,10 +25,10 @@
25
25
  "clean": "rimraf es lib umd scss/generated"
26
26
  },
27
27
  "devDependencies": {
28
- "@carbon/bundler": "^10.6.0-rc.0",
29
- "@carbon/cli-reporter": "10.3.0",
30
- "@carbon/scss-generator": "^10.6.0-rc.0",
31
- "@carbon/test-utils": "^10.7.0-rc.0",
28
+ "@carbon/bundler": "^10.6.0",
29
+ "@carbon/cli-reporter": "^10.3.0",
30
+ "@carbon/scss-generator": "^10.6.0",
31
+ "@carbon/test-utils": "^10.7.0",
32
32
  "core-js": "^3.4.0",
33
33
  "rimraf": "^3.0.0"
34
34
  },
@@ -38,5 +38,5 @@
38
38
  "sassDir": "scss",
39
39
  "needs": "^1.3.0"
40
40
  },
41
- "gitHead": "fd36b443faf91ffb99359c6cef95e8fe95e5e616"
41
+ "gitHead": "7d43dabaf011f2bcc70798b96c30173f7fc54e44"
42
42
  }
@@ -165,12 +165,8 @@ $carbon--grid-breakpoints: (
165
165
  } @else if map-has-key($breakpoints, $name) {
166
166
  $breakpoint: map-get($breakpoints, $name);
167
167
  $width: map-get($breakpoint, width);
168
- @if carbon--is-smallest-breakpoint($name, $breakpoints) {
168
+ @media (max-width: $width) {
169
169
  @content;
170
- } @else {
171
- @media (max-width: $width) {
172
- @content;
173
- }
174
170
  }
175
171
  } @else {
176
172
  @error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';