From 5d7e46bf9e9a68dcb6ade41787fe15a0e382f8dc Mon Sep 17 00:00:00 2001 From: Laura Griffee Date: Wed, 9 Feb 2022 16:44:04 -0700 Subject: [PATCH 1/3] Create documentation for available-names() --- documentation/guides/migrating-from-v8-to-v9.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index ad7633c3402..6639730ed4c 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -114,6 +114,10 @@ To help you quickly add these functions and mixins back to your repo, we've crea A list of functions/mixins and their value equivalents or new token values. +#### `available-names()` + +Use `console.log()` to get the function output and hard code the value you need. + #### `border()` | Function | Replacement Value/Token | From 414f8676d692ce176c5e34c79a57edf5b949f769 Mon Sep 17 00:00:00 2001 From: Laura Griffee Date: Thu, 10 Feb 2022 11:09:59 -0700 Subject: [PATCH 2/3] Link to function definition in mega file --- documentation/guides/migrating-from-v8-to-v9.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index 6639730ed4c..abc375a85b8 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -118,6 +118,12 @@ A list of functions/mixins and their value equivalents or new token values. Use `console.log()` to get the function output and hard code the value you need. +Otherwise, you can copy the function definition and use it locally. + +| Function | Source | +| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `available-names()` | [definition](https://github.com/Shopify/polaris-react/blob/b443d114d447df15d9e72914c8ca5058439a175e/documentation/guides/legacy-polaris-v8-public-api.scss#L354-L386) | + #### `border()` | Function | Replacement Value/Token | From eea479a36bd85aa32f357209147a938f4e1e0afa Mon Sep 17 00:00:00 2001 From: Laura Griffee Date: Fri, 11 Feb 2022 15:09:32 -0700 Subject: [PATCH 3/3] Update table header language --- documentation/guides/migrating-from-v8-to-v9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index abc375a85b8..d84664efc7d 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -120,7 +120,7 @@ Use `console.log()` to get the function output and hard code the value you need. Otherwise, you can copy the function definition and use it locally. -| Function | Source | +| Deprecated Function | Source | | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `available-names()` | [definition](https://github.com/Shopify/polaris-react/blob/b443d114d447df15d9e72914c8ca5058439a175e/documentation/guides/legacy-polaris-v8-public-api.scss#L354-L386) |