@automattic/vip-design-system 2.18.1 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.storybook/preview-head.html +1 -0
  2. package/build/system/Badge/Badge.js +2 -1
  3. package/build/system/DescriptionList/DescriptionList.js +0 -1
  4. package/build/system/Form/Label.d.ts +1 -3
  5. package/build/system/Form/Label.js +1 -3
  6. package/build/system/Form/RadioBoxGroup.jsx +12 -1
  7. package/build/system/Form/RadioBoxGroup.stories.jsx +6 -1
  8. package/build/system/Heading/Heading.js +2 -3
  9. package/build/system/Heading/Heading.stories.js +15 -2
  10. package/build/system/Nav/styles/variants/menu.js +1 -2
  11. package/build/system/Notice/Notice.js +1 -1
  12. package/build/system/Pagination/styles.js +1 -4
  13. package/build/system/Table/TableCell.js +1 -1
  14. package/build/system/Text/Text.js +0 -1
  15. package/build/system/Text/Text.stories.js +16 -13
  16. package/build/system/Toolbar/Logo.js +22 -6
  17. package/build/system/Wizard/Wizard.stories.js +11 -11
  18. package/build/system/Wizard/WizardStep.js +0 -2
  19. package/build/system/theme/generated/valet-theme-dark.json +224 -227
  20. package/build/system/theme/generated/valet-theme-light.json +224 -227
  21. package/build/system/theme/getPropValue.js +3 -7
  22. package/build/system/theme/index.d.ts +20 -12
  23. package/build/system/theme/index.js +27 -20
  24. package/docs/SETUP.md +1 -1
  25. package/package.json +1 -1
  26. package/src/system/Badge/Badge.tsx +2 -1
  27. package/src/system/DescriptionList/DescriptionList.tsx +0 -1
  28. package/src/system/Form/Label.tsx +1 -3
  29. package/src/system/Form/RadioBoxGroup.jsx +12 -1
  30. package/src/system/Form/RadioBoxGroup.stories.jsx +6 -1
  31. package/src/system/Heading/Heading.stories.tsx +10 -1
  32. package/src/system/Heading/Heading.tsx +1 -2
  33. package/src/system/Nav/styles/variants/menu.ts +1 -2
  34. package/src/system/Notice/Notice.tsx +1 -1
  35. package/src/system/Pagination/styles.ts +1 -4
  36. package/src/system/Table/TableCell.tsx +1 -1
  37. package/src/system/Text/Text.stories.tsx +7 -4
  38. package/src/system/Text/Text.tsx +0 -1
  39. package/src/system/Toolbar/Logo.tsx +19 -2
  40. package/src/system/Wizard/Wizard.stories.tsx +11 -11
  41. package/src/system/Wizard/WizardStep.tsx +0 -2
  42. package/src/system/theme/generated/valet-theme-dark.json +224 -227
  43. package/src/system/theme/generated/valet-theme-light.json +224 -227
  44. package/src/system/theme/getPropValue.ts +1 -8
  45. package/src/system/theme/index.ts +33 -18
  46. package/tokens/valet-core/valet-core.json +39 -9
  47. package/tokens/valet-core/wpvip-product-core.json +88 -125
@@ -16,6 +16,7 @@ var _ThemeBuilder = ThemeBuilder(Valet),
16
16
  ValetTheme = _ThemeBuilder.ValetTheme,
17
17
  getHeadingStyles = _ThemeBuilder.getHeadingStyles;
18
18
  var light = ColorBuilder(ValetTheme);
19
+ var supportLabelDefaultTypography = getPropValue('support', 'label-default');
19
20
 
20
21
  // Dark
21
22
  var _ThemeBuilder2 = ThemeBuilder(ValetDark),
@@ -29,12 +30,6 @@ var outline = {
29
30
  outlineWidth: '1px',
30
31
  boxShadow: "0 0 0 1px " + getPropValue('focus', 'inset') + ", 0 0 0 3px " + getPropValue('focus')
31
32
  };
32
- var fonts = {
33
- body: '-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
34
- heading: 'inherit',
35
- monospace: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',
36
- serif: 'recoletaregular, Georgia, serif'
37
- };
38
33
  var getComponentColors = function getComponentColors(theme, gColor, gVariants) {
39
34
  return {
40
35
  // Valet Theme Colors
@@ -175,13 +170,15 @@ var getComponentColors = function getComponentColors(theme, gColor, gVariants) {
175
170
  export default {
176
171
  outline: outline,
177
172
  space: getVariants('space'),
178
- fonts: fonts,
173
+ fonts: {
174
+ monospace: getPropValue('fontFamily', 'monospace'),
175
+ "default": getPropValue('fontFamily', 'default')
176
+ },
179
177
  fontSizes: getVariants('fontSize.static'),
180
178
  breakpoints: generateBreakpoints(getVariants('breakpoint')),
181
179
  fontWeights: {
182
- body: getPropValue('fontWeight', 'body'),
183
- heading: getPropValue('fontWeight', 'heading'),
184
180
  regular: getPropValue('fontWeight', 'regular'),
181
+ semibold: getPropValue('fontWeight', 'semibold'),
185
182
  bold: getPropValue('fontWeight', 'bold'),
186
183
  medium: getPropValue('fontWeight', 'medium'),
187
184
  light: getPropValue('fontWeight', 'light')
@@ -276,9 +273,13 @@ export default {
276
273
  }
277
274
  }
278
275
  },
276
+ forms: {
277
+ label: _extends({}, supportLabelDefaultTypography)
278
+ },
279
279
  buttons: {
280
- primary: {
281
- fontFamily: 'body',
280
+ primary: _extends({}, supportLabelDefaultTypography, {
281
+ // Button label weight: theme `medium` (500).
282
+ fontWeight: 'medium',
282
283
  color: 'button.primary.label.default',
283
284
  bg: 'button.primary.background.default',
284
285
  border: '1px solid transparent',
@@ -287,7 +288,6 @@ export default {
287
288
  minHeight: '38px',
288
289
  display: 'inline-flex',
289
290
  cursor: 'pointer',
290
- fontWeight: 'medium',
291
291
  boxShadow: 'none',
292
292
  borderRadius: 1,
293
293
  '&:hover': {
@@ -326,7 +326,7 @@ export default {
326
326
  backgroundColor: 'button.secondary.background.disabled',
327
327
  color: 'button.secondary.label.default'
328
328
  }
329
- },
329
+ }),
330
330
  secondary: {
331
331
  variant: 'buttons.primary',
332
332
  color: 'button.secondary.label.default',
@@ -490,7 +490,14 @@ export default {
490
490
  variant: 'buttons.tertiary'
491
491
  }
492
492
  },
493
- text: getHeadingStyles(),
493
+ text: _extends({}, getHeadingStyles(), getVariants('body'), {
494
+ 'support-helper-text': getPropValue('support', 'helper-text'),
495
+ 'support-label-xs': getPropValue('support', 'label-xs'),
496
+ 'support-label-small': getPropValue('support', 'label-small'),
497
+ 'support-label-default': getPropValue('support', 'label-default'),
498
+ 'support-label-default-quiet': getPropValue('support', 'label-default-quiet'),
499
+ 'support-label-default-loud': getPropValue('support', 'label-default-loud')
500
+ }),
494
501
  dialog: {
495
502
  modal: {
496
503
  position: 'fixed',
@@ -569,10 +576,10 @@ export default {
569
576
  }
570
577
  },
571
578
  styles: {
572
- root: _extends({
573
- fontFamily: 'body',
574
- lineHeight: 'body',
575
- fontWeight: 'body',
579
+ root: {
580
+ fontFamily: getPropValue('body', 'default').fontFamily,
581
+ lineHeight: getPropValue('body', 'default').lineHeight,
582
+ fontWeight: getPropValue('body', 'default').fontWeight,
576
583
  color: 'text',
577
584
  backgroundColor: 'backgrounds.primary',
578
585
  webkitFontSmoothing: 'antialiased',
@@ -589,11 +596,11 @@ export default {
589
596
  display: 'block'
590
597
  },
591
598
  pre: {
592
- fontFamily: 'body'
599
+ fontFamily: 'default'
593
600
  },
594
601
  p: {
595
602
  color: 'text'
596
603
  }
597
- }, getHeadingStyles())
604
+ }
598
605
  }
599
606
  };
package/docs/SETUP.md CHANGED
@@ -41,7 +41,7 @@ Run:
41
41
  npm run dev
42
42
  ```
43
43
 
44
- You can then visit [http://localhost:60006/](http://localhost:60006/) to view.
44
+ You can then visit [http://localhost:6006/](http://localhost:6006/) to view.
45
45
 
46
46
  ## Updating dependencies
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip-design-system",
3
- "version": "2.18.1",
3
+ "version": "2.19.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Automattic/vip-design-system"
@@ -27,6 +27,7 @@ export const Badge = forwardRef< HTMLDivElement, BadgeProps >(
27
27
  as="span"
28
28
  sx={ {
29
29
  fontSize: 0,
30
+ letterSpacing: '0.01em',
30
31
  padding: 0, // do we need padding declared twice here?
31
32
  bg: `tag.${ variant }.background`,
32
33
  color: `tag.${ variant }.text`,
@@ -35,7 +36,7 @@ export const Badge = forwardRef< HTMLDivElement, BadgeProps >(
35
36
  px: 2,
36
37
  display: 'inline-block',
37
38
  borderRadius: 1,
38
- fontWeight: 'heading',
39
+ fontWeight: 'medium',
39
40
  a: {
40
41
  color: `tag.${ variant }.text`,
41
42
  '&:hover, &:focus, &:active': {
@@ -42,7 +42,6 @@ const TableComponent = ( { list, className, sx, title }: DescriptionListProps )
42
42
  minWidth: 'auto',
43
43
  '> tbody > tr': {
44
44
  '> td, > th': {
45
- fontWeight: 'heading',
46
45
  border: 'none',
47
46
  pl: 0,
48
47
  '&:first-of-type': { pl: 0 },
@@ -13,9 +13,7 @@ import { RequiredLabel } from './RequiredLabel';
13
13
 
14
14
  export const baseLabelColor = 'input.label.default';
15
15
  export const baseLabelStyle = {
16
- fontWeight: 'heading',
17
- fontSize: 2,
18
- lineHeight: 1.5,
16
+ variant: 'forms.label',
19
17
  color: baseLabelColor,
20
18
  };
21
19
 
@@ -72,7 +72,14 @@ const RadioOption = ( {
72
72
  { ...restOption }
73
73
  />
74
74
  <div
75
- sx={ { mb: 0, color: 'input.radio-box.label.primary.default', p: 3, pr: 0, flex: 'auto' } }
75
+ sx={ {
76
+ mb: 0,
77
+ color: 'input.radio-box.label.primary.default',
78
+ fontWeight: 'semibold',
79
+ p: 3,
80
+ pr: 0,
81
+ flex: 'auto',
82
+ } }
76
83
  >
77
84
  <label htmlFor={ forLabel } { ...labelProps }>
78
85
  { label }
@@ -82,7 +89,11 @@ const RadioOption = ( {
82
89
  sx={ {
83
90
  color: 'input.radio-box.label.secondary.default',
84
91
  mb: 0,
92
+ mt: 1,
85
93
  fontSize: 1,
94
+ fontWeight: 'regular',
95
+ letterSpacing: '0.01em',
96
+ lineHeight: '140%',
86
97
  display: 'block',
87
98
  } }
88
99
  id={ describedById }
@@ -60,7 +60,12 @@ export const Primary = {
60
60
  args: {
61
61
  defaultValue: 'one',
62
62
  options: [
63
- { label: 'One', value: 'one', description: 'This is a description' },
63
+ {
64
+ label: 'One',
65
+ value: 'one',
66
+ description:
67
+ 'This is a longer description that allows us to see the text wrap and determine if the line height is correct',
68
+ },
64
69
  { label: 'Two', value: 'two', description: 'This is a description' },
65
70
  { label: 'Three', value: 'three', description: 'This is a description' },
66
71
  ],
@@ -27,7 +27,16 @@ export const Default: Story = {
27
27
  <Heading variant="h3">Heading Three</Heading>
28
28
  <Heading variant="h4">Heading Four</Heading>
29
29
  <Heading variant="h5">Heading Five</Heading>
30
- <Heading variant="h6">Heading Six</Heading>
30
+
31
+ <Heading variant="h3" as="h1">
32
+ Heading One with Heading Three Styles
33
+ </Heading>
34
+ <Heading as="p" sx={ { variant: 'text.caps' } }>
35
+ Paragraph with Caps Styles
36
+ </Heading>
37
+ <Heading as="h3" sx={ { variant: 'text.caps' } }>
38
+ Heading Three with Caps Styles
39
+ </Heading>
31
40
  </Box>
32
41
  ),
33
42
  };
@@ -20,10 +20,9 @@ export const Heading = forwardRef< HTMLHeadingElement, HeadingProps >(
20
20
  ( { variant = 'h3', sx, className, ...rest }: HeadingProps, ref: Ref< HTMLHeadingElement > ) => (
21
21
  <ThemeHeading
22
22
  as={ variant }
23
+ variant={ variant }
23
24
  sx={ {
24
25
  color: 'heading',
25
- // pass variant prop to sx
26
- variant: `text.${ variant.toString() }`,
27
26
  ...sx,
28
27
  } }
29
28
  className={ classNames( 'vip-heading-component', className ) }
@@ -51,8 +51,7 @@ export const menuItemLinkStyles: MixedStyleProp = {
51
51
  borderRadius: 1,
52
52
  color: 'text',
53
53
  display: 'inline-flex',
54
- fontSize: '0.875rem',
55
- fontWeight: 'body',
54
+ variant: 'text.default',
56
55
  height: 38,
57
56
  mx: 0,
58
57
  mb: 0,
@@ -240,7 +240,7 @@ export const Notice = React.forwardRef< HTMLDivElement, NoticeProps >(
240
240
  as={ headingVariant }
241
241
  sx={ {
242
242
  color: textColor,
243
- mb: 0,
243
+ mb: 1,
244
244
  fontSize: 2,
245
245
  fontWeight: 'bold',
246
246
  } }
@@ -26,8 +26,7 @@ export const pageButtonStyles: ThemeUIStyleObject = {
26
26
  bg: 'transparent',
27
27
  color: 'heading',
28
28
  cursor: 'pointer',
29
- fontSize: 2,
30
- fontFamily: 'body',
29
+ variant: 'text.default',
31
30
  px: 2,
32
31
  borderBottom: '3px solid',
33
32
  borderColor: 'transparent',
@@ -89,8 +88,6 @@ export const compactTriggerStyles: ThemeUIStyleObject = {
89
88
  bg: 'transparent',
90
89
  color: 'heading',
91
90
  cursor: 'pointer',
92
- fontSize: 2,
93
- fontFamily: 'body',
94
91
  fontWeight: 'bold',
95
92
  px: 2,
96
93
  borderRadius: 1,
@@ -31,7 +31,7 @@ export const TableCell = ( { children, head, sx, ...rest }: TableCellProps ) =>
31
31
  borderTop: head ? '1px solid' : 'none',
32
32
  // borderColor should come after borderTop so it can override it
33
33
  borderColor: 'table.border',
34
- fontWeight: 'body',
34
+ variant: 'text.default',
35
35
  px: 3,
36
36
  py: 2,
37
37
  textAlign: 'left',
@@ -33,16 +33,19 @@ export const Default: Story = {
33
33
  with silver.{ ' ' }
34
34
  </Text>
35
35
 
36
- <Text sx={ { color: 'texts.accent' } }>Text Accent</Text>
36
+ <Text variant="default">Body Default</Text>
37
+ <Text variant="small">Body Small</Text>
38
+ <Text variant="large">Body Large</Text>
39
+ <Text variant="mono">Body Mono</Text>
40
+ <Text variant="mono-bold">Body Mono Bold</Text>
37
41
 
42
+ <Text sx={ { color: 'texts.accent' } }>Text Accent</Text>
38
43
  <Text sx={ { color: 'texts.helper' } }>Text Helper</Text>
39
44
 
40
- <Text sx={ { color: 'texts.helper', fontWeight: 'body' } }>Text Helper</Text>
41
- <Text sx={ { color: 'texts.helper', fontWeight: 'heading' } }>Text Helper</Text>
45
+ <Text sx={ { color: 'texts.helper', fontWeight: 'light' } }>Text Helper</Text>
42
46
  <Text sx={ { color: 'texts.helper', fontWeight: 'regular' } }>Text Helper</Text>
43
47
  <Text sx={ { color: 'texts.helper', fontWeight: 'medium' } }>Text Helper</Text>
44
48
  <Text sx={ { color: 'texts.helper', fontWeight: 'bold' } }>Text Helper</Text>
45
- <Text sx={ { color: 'texts.helper', fontWeight: 'light' } }>Text Helper</Text>
46
49
 
47
50
  <Text sx={ { color: 'texts.secondary' } }>Text Secondary</Text>
48
51
 
@@ -13,7 +13,6 @@ export const Text = forwardRef< HTMLDivElement, ThemeTextProps >(
13
13
  <ThemeText
14
14
  as="p"
15
15
  sx={ {
16
- lineHeight: 'body',
17
16
  marginBottom: 2,
18
17
  color: 'text',
19
18
  ...sx,
@@ -37,11 +37,28 @@ export const Logo = ( { className, as = 'a', href }: LogoProps ) => (
37
37
  <svg
38
38
  className={ classNames( VIP_LOGO, className ) }
39
39
  xmlns="http://www.w3.org/2000/svg"
40
- viewBox="0 0 55 24"
40
+ viewBox="0 0 393.6 176.6"
41
41
  role="img"
42
42
  aria-label="WordPress VIP Logo"
43
+ sx={ {
44
+ display: 'block',
45
+ width: '100%',
46
+ height: 'auto',
47
+ } }
43
48
  >
44
- <path d="m12.014 0c-6.6103 0-12.014 5.3911-12.014 11.986 0 6.6226 5.4034 12.014 12.014 12.014 6.6377 0 12.041-5.3911 12.041-12.014 0-6.5952-5.4035-11.986-12.041-11.986zm-10.807 11.986c0-1.5598 0.32914-3.0376 0.93257-4.3786l5.1566 14.094c-3.5931-1.7515-6.0891-5.4459-6.0891-9.715zm10.807 10.782c-1.0697 0-2.0846-0.1642-3.0446-0.4378l3.2366-9.4139 3.3189 9.0855c0.0274 0.0547 0.0548 0.1094 0.0823 0.1368-1.1246 0.4105-2.3315 0.6294-3.5932 0.6294zm1.5086-15.818c0.6583-0.02737 1.2343-0.10946 1.2343-0.10946 0.576-0.0821 0.5211-0.93045-0.0823-0.87572 0 0-1.7554 0.13683-2.88 0.13683-1.0697 0-2.8526-0.13683-2.8526-0.13683-0.576-0.02736-0.65828 0.84835-0.05485 0.87572 0 0 0.54857 0.05473 1.1245 0.10946l1.6732 4.5975-2.3589 7.0604-3.9223-11.658c0.65828-0.02737 1.2343-0.10946 1.2343-0.10946 0.576-0.0821 0.52115-0.93045-0.08228-0.87572 0 0-1.7554 0.13683-2.88 0.13683h-0.68572c1.9474-2.9555 5.2663-4.8985 9.024-4.8985 2.8252 0 5.376 1.0673 7.296 2.8187h-0.1371c-1.0697 0-1.8103 0.93044-1.8103 1.9156 0 0.87571 0.5211 1.642 1.0697 2.5177 0.4114 0.71152 0.8777 1.642 0.8777 2.9829 0 0.9304-0.2743 2.0798-0.8228 3.4755l-1.0698 3.5849-3.8948-11.548zm3.9223 14.367l3.2914-9.5233c0.6034-1.5325 0.8229-2.764 0.8229-3.8586 0-0.41049-0.0275-0.76625-0.0823-1.122 0.8503 1.5325 1.3165 3.3113 1.3165 5.1722 0.0275 3.9955-2.112 7.4709-5.3485 9.3318zm17.472-14.86l-2.4412 7.1425c-0.2468 0.8757-0.4663 1.6967-0.5485 2.463h-0.0549c-0.0549-0.7663-0.2743-1.6146-0.5486-2.463l-2.4411-7.1425h-3.2092l4.608 12.068h3.2915l4.608-12.068h-3.264zm4.8548 0l-0.9051 2.3808v9.6602h3.2366v-12.041h-2.3315zm13.879 1.423c-0.7954-1.0946-1.92-1.642-3.3463-1.642-1.5086 0-2.5509 0.60206-3.3189 1.7788h-0.1645l-0.4663-1.5599h-2.6332v17.542h3.2366v-5.0627c0-0.1642-0.0548-0.7389-0.1646-1.7514h0.1646c0.7954 1.0399 1.8103 1.5325 3.2366 1.5325 0.9326 0 1.7554-0.2463 2.4686-0.7389 0.6857-0.4926 1.2342-1.2315 1.6182-2.1619 0.384-0.9579 0.576-2.0799 0.576-3.3661 0-1.9429-0.4114-3.4754-1.2068-4.5701zm-4.2514 8.1825c-0.8229 0-1.4538-0.2737-1.8378-0.8484-0.384-0.5473-0.576-1.4778-0.576-2.7913v-0.3558c0.0275-1.1494 0.2195-1.9703 0.576-2.4629 0.384-0.49259 0.96-0.73888 1.7829-0.73888 0.768 0 1.344 0.30103 1.7006 0.90308 0.3565 0.60203 0.5485 1.4777 0.5485 2.6818 0.0275 2.3809-0.7131 3.6124-2.1942 3.6124z" />
49
+ <path
50
+ fill="currentColor"
51
+ d="m88.3,0C39.6,0,0,39.6,0,88.3s39.6,88.3,88.3,88.3,88.3-39.5,88.3-88.3S137.1,0,88.3,0ZM8.8,88.3c0-11.5,2.5-22.5,6.8-32.4l37.8,103.8c-26-13-44.6-39.9-44.6-71.4Zm79.5,79.5c-7.7,0-15.3-1.1-22.5-3.2l23.7-69.2,24.4,66.9c.2.4.4.7.5,1.1-8.1,2.8-16.7,4.4-26.1,4.4Zm11-116.8c4.8-.4,9-.7,9-.7,4.1-.5,3.8-6.8-.5-6.5,0,0-13,.9-21.2.9-7.7,0-20.9-.9-20.9-.9-4.1-.4-4.8,6.3-.5,6.5,0,0,4.1.5,8.3.7l12.2,34-17.2,52-28.6-86c4.8-.4,9-.7,9-.7,4.1-.5,3.8-6.8-.5-6.5,0,0-13,.9-21.2.9-1.6,0-3.2,0-5.2-.2C36.1,23,60.5,8.8,88.2,8.8c20.7,0,39.5,7.9,53.6,20.9h-1.1c-7.7,0-13.3,6.8-13.3,14.2,0,6.5,3.8,12.2,7.7,18.7,2.9,5.2,6.5,12.2,6.5,21.9,0,6.8-2,15.5-6.1,25.7l-7.9,26.3-28.3-85.5Zm29.2,106l24.3-70.1c4.5-11.3,6.1-20.3,6.1-28.4,0-2.9-.2-5.5-.5-8.1,6.3,11.3,9.7,24.3,9.7,38.1-.3,29.1-16.3,54.8-39.6,68.5Z"
52
+ />
53
+ <path
54
+ fill="currentColor"
55
+ d="m323.7,39.2h33.4c7.2,0,13.1.9,17.8,2.5,4.7,1.6,8.5,3.8,11.1,6.5,2.9,2.7,4.7,5.8,5.8,9.3,1.1,3.4,1.8,7.2,1.8,11,0,4.1-.5,8.1-1.8,11.9-1.1,3.8-3.1,7-5.8,10.1-2.7,2.9-6.5,5.1-11,6.6-4.5,1.6-10.4,2.5-17.5,2.5h-14.7v33.4h-19.2V39.2h.1Zm33.3,44.1c3.4,0,6.3-.4,8.5-1.1,2.4-.7,4.1-1.6,5.4-2.9,1.3-1.3,2.1-2.7,2.7-4.5.5-1.8.7-3.8.7-5.9s-.2-4.1-.7-5.8c-.5-1.6-1.4-3.1-2.7-4.1-1.3-1.1-3.1-2-5.4-2.7-2.1-.5-5.1-.9-8.5-.9h-14v27.8h14v.1Z"
56
+ />
57
+ <path
58
+ fill="currentColor"
59
+ d="m197.5,39.2h21.9l22.8,66.3,23.4-66.3h21l-35.3,93.9h-18.5l-35.3-93.9Z"
60
+ />
61
+ <path fill="currentColor" fillRule="evenodd" d="m311,39.2h-13.3l-6.3,16.9v76.9h19.6V39.2Z" />
45
62
  </svg>
46
63
  </Link>
47
64
  );
@@ -30,18 +30,18 @@ export const Primary: Story = {
30
30
  steps: [
31
31
  {
32
32
  title: 'Step One',
33
- titleVariant: 'h2',
33
+ titleVariant: 'h3',
34
34
  subTitle: 'First step description.',
35
35
  children: 'Step one content',
36
36
  },
37
37
  {
38
38
  title: 'Step Two',
39
- titleVariant: 'h2',
39
+ titleVariant: 'h3',
40
40
  subTitle: 'Second step description.',
41
41
  },
42
42
  {
43
43
  title: 'Step Three',
44
- titleVariant: 'h2',
44
+ titleVariant: 'h3',
45
45
  },
46
46
  ],
47
47
  },
@@ -52,7 +52,7 @@ export const Default: Story = {
52
52
  const steps: WizardStepProps[] = [
53
53
  {
54
54
  title: 'Choose Domain',
55
- titleVariant: 'h2',
55
+ titleVariant: 'h3',
56
56
  subTitle: 'You can bring a domain name you already own, or buy a new one.',
57
57
  children: (
58
58
  <Box>
@@ -64,16 +64,16 @@ export const Default: Story = {
64
64
  },
65
65
  {
66
66
  title: 'Configure DNS',
67
- titleVariant: 'h2',
67
+ titleVariant: 'h3',
68
68
  summaryTitle: 'Summary of Configure DNS',
69
69
  },
70
70
  {
71
71
  title: 'Configure Certificate',
72
- titleVariant: 'h2',
72
+ titleVariant: 'h3',
73
73
  },
74
74
  {
75
75
  title: 'Verify Domain',
76
- titleVariant: 'h2',
76
+ titleVariant: 'h3',
77
77
  },
78
78
  ];
79
79
  return (
@@ -99,7 +99,7 @@ export const WithTitleAutoFocus: Story = {
99
99
  const steps: WizardStepProps[] = [
100
100
  {
101
101
  title: 'Choose Domain',
102
- titleVariant: 'h2',
102
+ titleVariant: 'h3',
103
103
  summary: [
104
104
  {
105
105
  label: 'Demo Label',
@@ -119,7 +119,7 @@ export const WithTitleAutoFocus: Story = {
119
119
  },
120
120
  {
121
121
  title: 'Configure DNS',
122
- titleVariant: 'h2',
122
+ titleVariant: 'h3',
123
123
  onChange: () => setActiveStep( 1 ),
124
124
  actionLabel: 'Edit',
125
125
  actionDisabled: true,
@@ -136,7 +136,7 @@ export const WithTitleAutoFocus: Story = {
136
136
 
137
137
  {
138
138
  title: 'Certificate',
139
- titleVariant: 'h2',
139
+ titleVariant: 'h3',
140
140
  summary: [
141
141
  {
142
142
  label: 'Certificate status',
@@ -192,7 +192,7 @@ export const HideStepText: Story = {
192
192
  const steps: WizardStepProps[] = [
193
193
  {
194
194
  title: 'Included Logs',
195
- titleVariant: 'h2',
195
+ titleVariant: 'h3',
196
196
  subTitle: '',
197
197
  children: <Text sx={ { mb: 0 } }>Error Logs</Text>,
198
198
  onChange: () => {
@@ -171,8 +171,6 @@ export const WizardStep = React.forwardRef< HTMLDivElement, WizardStepProps >(
171
171
  sx={ {
172
172
  mb: 0,
173
173
  color: headingColor,
174
- fontSize: 2,
175
- fontWeight: 'heading',
176
174
  flexGrow: 1,
177
175
  } }
178
176
  ref={ titleRef }