diff --git a/UNRELEASED-v9.md b/UNRELEASED-v9.md index 7059190c501..7dc0e14acef 100644 --- a/UNRELEASED-v9.md +++ b/UNRELEASED-v9.md @@ -41,6 +41,7 @@ Use [the changelog guidelines](/documentation/Versioning%20and%20changelog.md) t - Removed the `unstyled-link()` mixin and replaced any instances with values ([#4951](https://github.com/Shopify/polaris-react/pull/4951)) - Removed the `unstyled-list()` mixin and replaced any instances with values ([#4960](https://github.com/Shopify/polaris-react/pull/4960)) - Removed `high-contrast-outline()` and `high-contrast-border()` mixins and replaced any instances with tokens and values ([#4962](https://github.com/Shopify/polaris-react/pull/4962)) +- Removed the `map-extend` scss function ([#4970](https://github.com/Shopify/polaris-react/pull/4970)) ### New components diff --git a/src/styles/_common.scss b/src/styles/_common.scss index 2c33c72521e..20b70a3d932 100644 --- a/src/styles/_common.scss +++ b/src/styles/_common.scss @@ -4,7 +4,6 @@ // stylelint-disable scss/partial-no-import -@import './foundation/utilities'; @import './foundation/layout'; @import './foundation/focus-ring'; diff --git a/src/styles/_public-api.scss b/src/styles/_public-api.scss index cf01a30861b..fb9988db34e 100644 --- a/src/styles/_public-api.scss +++ b/src/styles/_public-api.scss @@ -16,7 +16,6 @@ // stylelint-disable scss/partial-no-import -@import './foundation/utilities'; @import './foundation/layout'; @import './foundation/focus-ring'; diff --git a/src/styles/foundation/_utilities.scss b/src/styles/foundation/_utilities.scss deleted file mode 100644 index f95daea0fdc..00000000000 --- a/src/styles/foundation/_utilities.scss +++ /dev/null @@ -1,22 +0,0 @@ -// Merge multiple maps into one. -// @param {Map} $map - Initial default map. -// @param {ArgList} $maps - Other maps to merge. -// @return {Map} The final merged map. -@function map-extend($map, $maps...) { - @for $i from 1 through length($maps) { - @each $key, $value in nth($maps, $i) { - $map: map-merge( - $map, - ( - $key: $value, - ) - ); - - @if type-of($value) == map and type-of(map-get($map, $key)) == map { - $value: map-extend(map-get($map, $key), $value); - } - } - } - - @return $map; -}