|
7 | 7 | DropZone, |
8 | 8 | Modal, |
9 | 9 | Stack, |
| 10 | + Text, |
10 | 11 | TextContainer, |
11 | 12 | TextField, |
12 | 13 | } from '@shopify/polaris'; |
@@ -42,11 +43,11 @@ export function Default() { |
42 | 43 | > |
43 | 44 | <Modal.Section> |
44 | 45 | <TextContainer> |
45 | | - <p> |
| 46 | + <Text variant="bodyMd" as="span"> |
46 | 47 | Use Instagram posts to share your products with millions of |
47 | 48 | people. Let shoppers buy from your store without leaving |
48 | 49 | Instagram. |
49 | | - </p> |
| 50 | + </Text> |
50 | 51 | </TextContainer> |
51 | 52 | </Modal.Section> |
52 | 53 | </Modal> |
@@ -92,11 +93,11 @@ export function WithPrimaryAction() { |
92 | 93 | <Stack vertical> |
93 | 94 | <Stack.Item> |
94 | 95 | <TextContainer> |
95 | | - <p> |
| 96 | + <Text variant="bodyMd" as="span"> |
96 | 97 | You can share this discount link with your customers via email |
97 | 98 | or social media. Your discount will be automatically applied |
98 | 99 | at checkout. |
99 | | - </p> |
| 100 | + </Text> |
100 | 101 | </TextContainer> |
101 | 102 | </Stack.Item> |
102 | 103 | <Stack.Item fill> |
@@ -336,11 +337,11 @@ export function WithoutATitle() { |
336 | 337 | > |
337 | 338 | <Modal.Section titleHidden> |
338 | 339 | <TextContainer> |
339 | | - <p> |
| 340 | + <Text variant="bodyMd" as="span"> |
340 | 341 | Use Instagram posts to share your products with millions of |
341 | 342 | people. Let shoppers buy from your store without leaving |
342 | 343 | Instagram. |
343 | | - </p> |
| 344 | + </Text> |
344 | 345 | </TextContainer> |
345 | 346 | </Modal.Section> |
346 | 347 | </Modal> |
@@ -372,9 +373,9 @@ export function WithScrollListener() { |
372 | 373 | {Array.from({length: 50}, (_, index) => ( |
373 | 374 | <Modal.Section key={index}> |
374 | 375 | <TextContainer> |
375 | | - <p> |
| 376 | + <Text variant="bodyMd" as="span"> |
376 | 377 | Item <a href="#Content">#{index}</a> |
377 | | - </p> |
| 378 | + </Text> |
378 | 379 | </TextContainer> |
379 | 380 | </Modal.Section> |
380 | 381 | ))} |
@@ -421,11 +422,11 @@ export function WithActivatorRef() { |
421 | 422 | > |
422 | 423 | <Modal.Section> |
423 | 424 | <TextContainer> |
424 | | - <p> |
| 425 | + <Text variant="bodyMd" as="span"> |
425 | 426 | Use Instagram posts to share your products with millions of |
426 | 427 | people. Let shoppers buy from your store without leaving |
427 | 428 | Instagram. |
428 | | - </p> |
| 429 | + </Text> |
429 | 430 | </TextContainer> |
430 | 431 | </Modal.Section> |
431 | 432 | </Modal> |
@@ -468,11 +469,11 @@ export function WithoutAnActivatorProp() { |
468 | 469 | > |
469 | 470 | <Modal.Section> |
470 | 471 | <TextContainer> |
471 | | - <p> |
| 472 | + <Text variant="bodyMd" as="span"> |
472 | 473 | Use Instagram posts to share your products with millions of |
473 | 474 | people. Let shoppers buy from your store without leaving |
474 | 475 | Instagram. |
475 | | - </p> |
| 476 | + </Text> |
476 | 477 | </TextContainer> |
477 | 478 | </Modal.Section> |
478 | 479 | </Modal> |
|
0 commit comments