Skip to content

Commit 00c11c3

Browse files
committed
Update DisplayText size to variant mapping
1 parent e96c4ad commit 00c11c3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

polaris-migrator/src/migrations/replace-text-component/steps/replace-display-text.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import {
1818
import type {MigrationOptions} from '../replace-text-component';
1919

2020
const displayTextSizeMap = {
21-
small: 'headingXl',
22-
medium: 'heading2xl',
23-
large: 'heading3xl',
21+
small: 'headingLg',
22+
medium: 'headingXl',
23+
large: 'heading2xl',
2424
extraLarge: 'heading4xl',
2525
};
2626

polaris-migrator/src/migrations/replace-text-component/tests/replace-components-relative.output.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ export function App() {
1010
<Text variant="heading4xl" as="p">
1111
Display text
1212
</Text>
13-
<Text variant="heading3xl" as="p">
14-
Display text
15-
</Text>
1613
<Text variant="heading2xl" as="p">
1714
Display text
1815
</Text>
1916
<Text variant="headingXl" as="p">
2017
Display text
2118
</Text>
19+
<Text variant="headingLg" as="p">
20+
Display text
21+
</Text>
2222
<Text as="h1" variant="headingLg">
2323
Heading
2424
</Text>

polaris-migrator/src/migrations/replace-text-component/tests/replace-components.output.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ export function App() {
77
<Text variant="heading4xl" as="p">
88
Display text
99
</Text>
10-
<Text variant="heading3xl" as="p">
11-
Display text
12-
</Text>
1310
<Text variant="heading2xl" as="p">
1411
Display text
1512
</Text>
1613
<Text variant="headingXl" as="p">
1714
Display text
1815
</Text>
16+
<Text variant="headingLg" as="p">
17+
Display text
18+
</Text>
1919
<Text as="h1" variant="headingLg">
2020
Heading
2121
</Text>

0 commit comments

Comments
 (0)