diff --git a/.changeset/green-laws-crash.md b/.changeset/green-laws-crash.md new file mode 100644 index 00000000000..cb812920afd --- /dev/null +++ b/.changeset/green-laws-crash.md @@ -0,0 +1,6 @@ +--- +'@shopify/polaris': patch +'polaris.shopify.com': patch +--- + +Undeprecated `heading2xl` variant in `Text` component diff --git a/polaris-react/src/components/Text/Text.tsx b/polaris-react/src/components/Text/Text.tsx index 0843617a694..10eba82075e 100644 --- a/polaris-react/src/components/Text/Text.tsx +++ b/polaris-react/src/components/Text/Text.tsx @@ -52,8 +52,7 @@ type Tone = type TextDecorationLine = 'line-through'; const deprecatedVariants: {[V in Variant]?: Variant} = { - heading2xl: 'headingXl', - heading3xl: 'headingXl', + heading3xl: 'heading2xl', }; export interface TextProps { /** Adjust horizontal alignment of text */ diff --git a/polaris.shopify.com/pages/components/[group]/[component]/index.tsx b/polaris.shopify.com/pages/components/[group]/[component]/index.tsx index cfd1a0e37fb..2ccd07c5fc6 100644 --- a/polaris.shopify.com/pages/components/[group]/[component]/index.tsx +++ b/polaris.shopify.com/pages/components/[group]/[component]/index.tsx @@ -78,7 +78,7 @@ const componentUnionTypeDeprecations: { }; } = { Text: { - Variant: ['heading2xl', 'heading3xl'], + Variant: ['heading3xl'], }, };