|
9 | 9 |
|
10 | 10 | @use 'sass:map';
|
11 | 11 | @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; |
13 | 14 | @use 'font-family';
|
14 | 15 | @use 'scale';
|
15 | 16 |
|
@@ -716,7 +717,7 @@ $tokens: (
|
716 | 717 | /// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use
|
717 | 718 | /// @access public
|
718 | 719 | /// @group @carbon/type
|
719 |
| -@mixin fluid-type($type-styles, $breakpoints: grid.$grid-breakpoints) { |
| 720 | +@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) { |
720 | 721 | // Include the initial styles for the given token by default without any
|
721 | 722 | // media query guard. This includes `font-size` as a fallback in the case
|
722 | 723 | // that a browser does not support `calc()`
|
@@ -745,7 +746,7 @@ $tokens: (
|
745 | 746 | @mixin fluid-type-size(
|
746 | 747 | $type-styles,
|
747 | 748 | $name,
|
748 |
| - $breakpoints: grid.$grid-breakpoints |
| 749 | + $breakpoints: gridconfig.$grid-breakpoints |
749 | 750 | ) {
|
750 | 751 | // Get the information about the breakpoint we're currently working in. Useful
|
751 | 752 | // for getting initial width information
|
@@ -846,7 +847,11 @@ $custom-property-prefix: 'cds' !default;
|
846 | 847 | /// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use
|
847 | 848 | /// @access public
|
848 | 849 | /// @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 | +) { |
850 | 855 | @if not map.has-key($tokens, $name) {
|
851 | 856 | @error 'Unable to find a token with the name: `#{$name}`';
|
852 | 857 | }
|
|
0 commit comments