@automattic/vip-design-system 1.2.2 → 1.2.3

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.
@@ -46,8 +46,10 @@ var Button = exports.Button = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
46
46
  },
47
47
  '&[aria-disabled="true"]': {
48
48
  opacity: 0.7,
49
+ backgroundColor: 'input.border.disabled',
50
+ color: 'texts.secondary',
49
51
  cursor: 'not-allowed',
50
- pointerEvents: 'all'
52
+ pointerEvents: 'none'
51
53
  }
52
54
  }, sx)
53
55
  }, rest, {
@@ -76,6 +76,14 @@ var Template = function Template(args) {
76
76
  }
77
77
  }, args, {
78
78
  children: "Danger"
79
+ })), (0, _jsxRuntime.jsx)(_.Button, _extends({
80
+ variant: "primary",
81
+ disabled: true,
82
+ sx: {
83
+ ml: 2
84
+ }
85
+ }, args, {
86
+ children: "Disabled"
79
87
  })), (0, _jsxRuntime.jsx)(_.Button, _extends({
80
88
  variant: "text",
81
89
  sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip-design-system",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "main": "build/system/index.js",
5
5
  "scripts": {
6
6
  "build-storybook": "storybook build",
@@ -90,6 +90,10 @@ const Template = args => (
90
90
  Danger
91
91
  </Button>
92
92
 
93
+ <Button variant="primary" disabled={ true } sx={ { ml: 2 } } { ...args }>
94
+ Disabled
95
+ </Button>
96
+
93
97
  <Button variant="text" sx={ { ml: 2 } } as="a" href="https://google/com" { ...args }>
94
98
  Button link
95
99
  </Button>
@@ -47,8 +47,10 @@ const Button = forwardRef< HTMLButtonElement, ButtonProps >(
47
47
  '&:focus-visible': ( theme: ButtonTheme ) => theme.outline,
48
48
  '&[aria-disabled="true"]': {
49
49
  opacity: 0.7,
50
+ backgroundColor: 'input.border.disabled',
51
+ color: 'texts.secondary',
50
52
  cursor: 'not-allowed',
51
- pointerEvents: 'all',
53
+ pointerEvents: 'none',
52
54
  },
53
55
  ...sx,
54
56
  } }