Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/green-laws-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/polaris': patch
'polaris.shopify.com': patch
---

Undeprecated `heading2xl` variant in `Text` component
3 changes: 1 addition & 2 deletions polaris-react/src/components/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const componentUnionTypeDeprecations: {
};
} = {
Text: {
Variant: ['heading2xl', 'heading3xl'],
Variant: ['heading3xl'],
},
};

Expand Down