Skip to content

Commit d5ebf7b

Browse files
tay1orjonestw15egan
andcommitted
fix(dep): include missing dep, small grid fix (#10962)
* fix(dep): include missing dep, small grid fix * fix(grid): proper config for grid breakpoints and config Co-authored-by: TJ Egan <tw15egan@gmail.com>
1 parent 05b57e9 commit d5ebf7b

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

packages/react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"prop-types": "^15.7.2",
6464
"react-is": "^17.0.2",
6565
"use-resize-observer": "^6.0.0",
66-
"wicg-inert": "^3.1.1"
66+
"wicg-inert": "^3.1.1",
67+
"window-or-global": "^1.0.1"
6768
},
6869
"devDependencies": {
6970
"@babel/cli": "^7.16.7",

packages/type/scss/modules/_styles.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
@use 'sass:map';
1111
@use 'sass:math';
12-
@use '@carbon/grid/scss/modules/config' as grid;
12+
@use '@carbon/grid/scss/modules/config' as gridconfig;
13+
@use '@carbon/grid/scss/modules/breakpoint' as grid;
1314
@use 'font-family';
1415
@use 'scale';
1516

@@ -716,7 +717,7 @@ $tokens: (
716717
/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use
717718
/// @access public
718719
/// @group @carbon/type
719-
@mixin fluid-type($type-styles, $breakpoints: grid.$grid-breakpoints) {
720+
@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {
720721
// Include the initial styles for the given token by default without any
721722
// media query guard. This includes `font-size` as a fallback in the case
722723
// that a browser does not support `calc()`
@@ -745,7 +746,7 @@ $tokens: (
745746
@mixin fluid-type-size(
746747
$type-styles,
747748
$name,
748-
$breakpoints: grid.$grid-breakpoints
749+
$breakpoints: gridconfig.$grid-breakpoints
749750
) {
750751
// Get the information about the breakpoint we're currently working in. Useful
751752
// for getting initial width information
@@ -846,7 +847,11 @@ $custom-property-prefix: 'cds' !default;
846847
/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use
847848
/// @access public
848849
/// @group @carbon/type
849-
@mixin type-style($name, $fluid: false, $breakpoints: grid.$grid-breakpoints) {
850+
@mixin type-style(
851+
$name,
852+
$fluid: false,
853+
$breakpoints: gridconfig.$grid-breakpoints
854+
) {
850855
@if not map.has-key($tokens, $name) {
851856
@error 'Unable to find a token with the name: `#{$name}`';
852857
}

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11794,6 +11794,7 @@ __metadata:
1179411794
webpack-dev-server: ^4.6.0
1179511795
whatwg-fetch: ^3.6.2
1179611796
wicg-inert: ^3.1.1
11797+
window-or-global: ^1.0.1
1179711798
peerDependencies:
1179811799
carbon-components: ^10.30.0
1179911800
carbon-icons: ^7.0.7

0 commit comments

Comments
 (0)