@automattic/vip-design-system 1.2.0 → 1.2.1

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.
@@ -21,6 +21,7 @@ export interface HeadingProps extends Omit< ThemeHeadingProps, 'className' > {
21
21
  export const Heading = React.forwardRef< HTMLHeadingElement, HeadingProps >(
22
22
  ( { variant = 'h3', sx, className, ...rest }, ref: Ref< HTMLHeadingElement > ) => (
23
23
  <ThemeHeading
24
+ as={ variant }
24
25
  sx={ {
25
26
  color: 'heading',
26
27
  // pass variant prop to sx
@@ -29,7 +30,6 @@ export const Heading = React.forwardRef< HTMLHeadingElement, HeadingProps >(
29
30
  } }
30
31
  className={ classNames( 'vip-heading-component', className ) }
31
32
  ref={ ref }
32
- variant={ variant }
33
33
  { ...rest }
34
34
  />
35
35
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip-design-system",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "build/system/index.js",
5
5
  "scripts": {
6
6
  "build-storybook": "storybook build",
@@ -21,6 +21,7 @@ export interface HeadingProps extends Omit< ThemeHeadingProps, 'className' > {
21
21
  export const Heading = React.forwardRef< HTMLHeadingElement, HeadingProps >(
22
22
  ( { variant = 'h3', sx, className, ...rest }, ref: Ref< HTMLHeadingElement > ) => (
23
23
  <ThemeHeading
24
+ as={ variant }
24
25
  sx={ {
25
26
  color: 'heading',
26
27
  // pass variant prop to sx
@@ -29,7 +30,6 @@ export const Heading = React.forwardRef< HTMLHeadingElement, HeadingProps >(
29
30
  } }
30
31
  className={ classNames( 'vip-heading-component', className ) }
31
32
  ref={ ref }
32
- variant={ variant }
33
33
  { ...rest }
34
34
  />
35
35
  )