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/tiny-ravens-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/polaris-migrator': patch
'polaris.shopify.com': patch
---

Fixed mapping for `TextStyle` `variation="strong"` to use `Text` `fontWeight="semibold"` instead of `fontWeight="bold"`
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type {MigrationOptions} from '../react-replace-text-components';
import {POLARIS_MIGRATOR_COMMENT} from '../../../constants';

const variationMap = {
strong: {fontWeight: 'bold'},
strong: {fontWeight: 'semibold'},
subdued: {color: 'subdued'},
positive: {color: 'success'},
negative: {color: 'critical'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function App() {
<Text variant="bodySm" as="p">
Caption
</Text>
<Text variant="bodyMd" fontWeight="bold" as="span">
<Text variant="bodyMd" fontWeight="semibold" as="span">
Strong
</Text>
<Text variant="bodyMd" color="success" as="span">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function App() {
<Text variant="bodySm" as="p">
Caption
</Text>
<Text variant="bodyMd" fontWeight="bold" as="span">
<Text variant="bodyMd" fontWeight="semibold" as="span">
Strong
</Text>
<Text variant="bodyMd" color="success" as="span">
Expand Down
2 changes: 1 addition & 1 deletion polaris.shopify.com/content/components/text-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ status:

```diff
- <TextStyle variation="strong">No supplier listed</TextStyle>
+ <Text variant="bodyMd" as="span" fontWeight="bold">No supplier listed</Text>
+ <Text variant="bodyMd" as="span" fontWeight="semibold">No supplier listed</Text>
```

### Positive
Expand Down