From 55a0a0aed03c97d88e064b34053af571b5516f42 Mon Sep 17 00:00:00 2001 From: aveline Date: Wed, 9 Feb 2022 13:31:43 -0800 Subject: [PATCH] Add migration guidance for rem() --- documentation/guides/migrating-from-v8-to-v9.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index 453d12bee73..4cce3f0f929 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -229,6 +229,14 @@ We replaced a few of the following filter function instances with color tokens i | `ms-high-contrast-color('button-text-background')` | `buttonFace` | | `ms-high-contrast-color('background')` | `window` | +#### `rem()` + +This function has been deprecated, but the definition can be copied and used locally. + +| Function | Source | +| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `rem()` | [definition](https://github.com/Shopify/polaris-react/blob/b443d114d447df15d9e72914c8ca5058439a175e/documentation/guides/legacy-polaris-v8-public-api.scss#L293) | + #### `shadow()` | Function | Replacement Value/Token |