From c9d9129b456639658cc15dfa2792a81b1d00d565 Mon Sep 17 00:00:00 2001 From: Laura Griffee Date: Fri, 11 Feb 2022 15:38:03 -0700 Subject: [PATCH 1/4] Add existing headers to table of contents --- .../guides/migrating-from-v8-to-v9.md | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index b4ffed52e9c..669c3d7e731 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -2,6 +2,50 @@ Polaris v9.0.0 ([full release notes](https://github.com/Shopify/polaris-react/releases/tag/v9.0.0)) features removal of the public scss api and removal of scss functions and mixins. +## Table of Contents + +- [Migrating from v8 to v9](#migrating-from-v8-to-v9) + - [Table of Contents](#table-of-contents) + - [Components](#components) + - [From `ThemeProvider` to `CustomProperties`](#from-themeprovider-to-customproperties) + - [`AppProvider` changes](#appprovider-changes) + - [Removed all theme types, constants, and utilities](#removed-all-theme-types-constants-and-utilities) + - [`SkeletonPage`](#skeletonpage) + - [CSS custom properties](#css-custom-properties) + - [Sass functions and mixins](#sass-functions-and-mixins) + - [Replacing function and mixin instances with values or tokens](#replacing-function-and-mixin-instances-with-values-or-tokens) + - [`border()`](#border) + - [`border-radius()`](#border-radius) + - [`border-width()`](#border-width) + - [`color()`](#color) + - [`color-icon()`](#color-icon) + - [`color-multiply()`](#color-multiply) + - [`duration()`](#duration) + - [`em()`](#em) + - [`easing()`](#easing) + - [`filter()`](#filter) + - [`font-family()`](#font-family) + - [`hidden-when-printing()`](#hidden-when-printing) + - [`high-contrast-border()`](#high-contrast-border) + - [`high-contrast-outline()`](#high-contrast-outline) + - [`icon-size()`](#icon-size) + - [`map-extend()`](#map-extend) + - [`ms-high-contrast-color()`](#ms-high-contrast-color) + - [`print-hidden()`](#print-hidden) + - [`px()`](#px) + - [`rem()`](#rem) + - [`shadow()`](#shadow) + - [`skeleton-page-header-layout()`](#skeleton-page-header-layout) + - [`skeleton-page-secondary-actions-layout()`](#skeleton-page-secondary-actions-layout) + - [`skeleton-shimmer()`](#skeleton-shimmer) + - [`spacing()`](#spacing) + - [`unstyled-link()`](#unstyled-link) + - [`unstyled-list()`](#unstyled-list) + - [`when-not-printing()`](#when-not-printing) + - [`when-printing()`](#when-printing) + - [`z-index()`](#z-index) + - [Adding the functions and mixins to your repo](#adding-the-functions-and-mixins-to-your-repo) + ## Components ### From `ThemeProvider` to `CustomProperties` From 889445dfe93d2e9406e3cf37c16f033bee23281b Mon Sep 17 00:00:00 2001 From: Laura Griffee Date: Fri, 11 Feb 2022 16:41:48 -0700 Subject: [PATCH 2/4] Add new merges --- documentation/guides/migrating-from-v8-to-v9.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index c27adb71d63..3cf9f67cb0f 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -13,7 +13,8 @@ Polaris v9.0.0 ([full release notes](https://github.com/Shopify/polaris-react/re - [`SkeletonPage`](#skeletonpage) - [CSS custom properties](#css-custom-properties) - [Sass functions and mixins](#sass-functions-and-mixins) - - [Replacing function and mixin instances with values or tokens](#replacing-function-and-mixin-instances-with-values-or-tokens) + - [Replacing function and mixin instances with value equivalents](#replacing-function-and-mixin-instances-with-value-equivalents) + - [`available-names()`](#available-names) - [`border()`](#border) - [`border-radius()`](#border-radius) - [`border-width()`](#border-width) @@ -39,12 +40,15 @@ Polaris v9.0.0 ([full release notes](https://github.com/Shopify/polaris-react/re - [`skeleton-page-secondary-actions-layout()`](#skeleton-page-secondary-actions-layout) - [`skeleton-shimmer()`](#skeleton-shimmer) - [`spacing()`](#spacing) + - [`state()`](#state) - [`unstyled-link()`](#unstyled-link) - [`unstyled-list()`](#unstyled-list) - [`when-not-printing()`](#when-not-printing) - [`when-printing()`](#when-printing) - [`z-index()`](#z-index) - [Adding the functions and mixins to your repo](#adding-the-functions-and-mixins-to-your-repo) + - [Sass global variables](#sass-global-variables) + - [`@shopify/polaris-tokens`](#shopifypolaris-tokens) ## Components From c2fcb35b85ad9553fb74871c9bd32fcf54bbedb5 Mon Sep 17 00:00:00 2001 From: Laura Griffee Date: Fri, 11 Feb 2022 17:01:20 -0700 Subject: [PATCH 3/4] Remove unwanted headers from table of contents --- .../guides/migrating-from-v8-to-v9.md | 94 +++++++++---------- 1 file changed, 46 insertions(+), 48 deletions(-) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index 3cf9f67cb0f..550608846de 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -1,54 +1,52 @@ -# Migrating from v8 to v9 +# Migrating from v8 to v9 Polaris v9.0.0 ([full release notes](https://github.com/Shopify/polaris-react/releases/tag/v9.0.0)) features removal of the public scss api and removal of scss functions and mixins. -## Table of Contents - -- [Migrating from v8 to v9](#migrating-from-v8-to-v9) - - [Table of Contents](#table-of-contents) - - [Components](#components) - - [From `ThemeProvider` to `CustomProperties`](#from-themeprovider-to-customproperties) - - [`AppProvider` changes](#appprovider-changes) - - [Removed all theme types, constants, and utilities](#removed-all-theme-types-constants-and-utilities) - - [`SkeletonPage`](#skeletonpage) - - [CSS custom properties](#css-custom-properties) - - [Sass functions and mixins](#sass-functions-and-mixins) - - [Replacing function and mixin instances with value equivalents](#replacing-function-and-mixin-instances-with-value-equivalents) - - [`available-names()`](#available-names) - - [`border()`](#border) - - [`border-radius()`](#border-radius) - - [`border-width()`](#border-width) - - [`color()`](#color) - - [`color-icon()`](#color-icon) - - [`color-multiply()`](#color-multiply) - - [`duration()`](#duration) - - [`em()`](#em) - - [`easing()`](#easing) - - [`filter()`](#filter) - - [`font-family()`](#font-family) - - [`hidden-when-printing()`](#hidden-when-printing) - - [`high-contrast-border()`](#high-contrast-border) - - [`high-contrast-outline()`](#high-contrast-outline) - - [`icon-size()`](#icon-size) - - [`map-extend()`](#map-extend) - - [`ms-high-contrast-color()`](#ms-high-contrast-color) - - [`print-hidden()`](#print-hidden) - - [`px()`](#px) - - [`rem()`](#rem) - - [`shadow()`](#shadow) - - [`skeleton-page-header-layout()`](#skeleton-page-header-layout) - - [`skeleton-page-secondary-actions-layout()`](#skeleton-page-secondary-actions-layout) - - [`skeleton-shimmer()`](#skeleton-shimmer) - - [`spacing()`](#spacing) - - [`state()`](#state) - - [`unstyled-link()`](#unstyled-link) - - [`unstyled-list()`](#unstyled-list) - - [`when-not-printing()`](#when-not-printing) - - [`when-printing()`](#when-printing) - - [`z-index()`](#z-index) - - [Adding the functions and mixins to your repo](#adding-the-functions-and-mixins-to-your-repo) - - [Sass global variables](#sass-global-variables) - - [`@shopify/polaris-tokens`](#shopifypolaris-tokens) +## Table of Contents + +- [Components](#components) + - [From `ThemeProvider` to `CustomProperties`](#from-themeprovider-to-customproperties) + - [`AppProvider` changes](#appprovider-changes) + - [Removed all theme types, constants, and utilities](#removed-all-theme-types-constants-and-utilities) + - [`SkeletonPage`](#skeletonpage) +- [CSS custom properties](#css-custom-properties) +- [Sass functions and mixins](#sass-functions-and-mixins) + - [Replacing function and mixin instances with value equivalents](#replacing-function-and-mixin-instances-with-value-equivalents) + - [`available-names()`](#available-names) + - [`border()`](#border) + - [`border-radius()`](#border-radius) + - [`border-width()`](#border-width) + - [`color()`](#color) + - [`color-icon()`](#color-icon) + - [`color-multiply()`](#color-multiply) + - [`duration()`](#duration) + - [`em()`](#em) + - [`easing()`](#easing) + - [`filter()`](#filter) + - [`font-family()`](#font-family) + - [`hidden-when-printing()`](#hidden-when-printing) + - [`high-contrast-border()`](#high-contrast-border) + - [`high-contrast-outline()`](#high-contrast-outline) + - [`icon-size()`](#icon-size) + - [`map-extend()`](#map-extend) + - [`ms-high-contrast-color()`](#ms-high-contrast-color) + - [`print-hidden()`](#print-hidden) + - [`px()`](#px) + - [`rem()`](#rem) + - [`shadow()`](#shadow) + - [`skeleton-page-header-layout()`](#skeleton-page-header-layout) + - [`skeleton-page-secondary-actions-layout()`](#skeleton-page-secondary-actions-layout) + - [`skeleton-shimmer()`](#skeleton-shimmer) + - [`spacing()`](#spacing) + - [`state()`](#state) + - [`unstyled-link()`](#unstyled-link) + - [`unstyled-list()`](#unstyled-list) + - [`when-not-printing()`](#when-not-printing) + - [`when-printing()`](#when-printing) + - [`z-index()`](#z-index) + - [Adding the functions and mixins to your repo](#adding-the-functions-and-mixins-to-your-repo) +- [Sass global variables](#sass-global-variables) +- [`@shopify/polaris-tokens`](#shopifypolaris-tokens) ## Components From cb99a80c9c88ea037a6b4a2ce6431b5db25a7dfd Mon Sep 17 00:00:00 2001 From: Laura Griffee Date: Mon, 14 Feb 2022 11:12:28 -0700 Subject: [PATCH 4/4] Remove plugin comments --- documentation/guides/migrating-from-v8-to-v9.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index 550608846de..20b3b984964 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -1,8 +1,8 @@ -# Migrating from v8 to v9 +# Migrating from v8 to v9 Polaris v9.0.0 ([full release notes](https://github.com/Shopify/polaris-react/releases/tag/v9.0.0)) features removal of the public scss api and removal of scss functions and mixins. -## Table of Contents +## Table of Contents - [Components](#components) - [From `ThemeProvider` to `CustomProperties`](#from-themeprovider-to-customproperties)