Skip to content

Commit 5a68309

Browse files
authored
fix(styles): use map.get in place of map-get (#18814)
1 parent 7ffd473 commit 5a68309

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/grid/scss/_flex-grid.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
/// @group @carbon/layout
271271
@function -last-map-item($map) {
272272
$total-length: list.length($map);
273-
@return map-get($map, -key-by-index($map, $total-length));
273+
@return map.get($map, -key-by-index($map, $total-length));
274274
}
275275

276276
/// Provide a map and index, and get back the relevant key value

packages/layout/scss/_utilities.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// This source code is licensed under the Apache-2.0 license found in the
55
// LICENSE file in the root directory of this source tree.
66
//
7+
@use 'sass:map';
78

89
/// Map deep get
910
/// @author Hugo Giraudel
@@ -37,5 +38,5 @@
3738
/// @group @carbon/layout
3839
@function last-map-item($map) {
3940
$total-length: list.length($map);
40-
@return map-get($map, carbon--key-by-index($map, $total-length));
41+
@return map.get($map, carbon--key-by-index($map, $total-length));
4142
}

packages/type/scss/_font-family.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
@use 'sass:string';
9+
@use 'sass:map';
910

1011
/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans
1112
/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif
@@ -65,7 +66,7 @@ $font-families: (
6566
/// @access public
6667
/// @group @carbon/type
6768
@function font-family($name) {
68-
@return map-get($font-families, $name);
69+
@return map.get($font-families, $name);
6970
}
7071

7172
/// Include the `font-family` definition for the given name in your selector
@@ -92,7 +93,7 @@ $font-weights: (
9293
/// @access public
9394
/// @group @carbon/type
9495
@function font-weight($weight) {
95-
@return map-get($font-weights, $weight);
96+
@return map.get($font-weights, $weight);
9697
}
9798

9899
/// Set the `font-weight` property with the value for a given name

0 commit comments

Comments
 (0)