@workday/canvas-kit-preview-react 6.3.2 → 6.3.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.
@@ -208,7 +208,7 @@ var MenuItem = /** @class */ (function (_super) {
208
208
  secondaryIconProps = setIconProps(secondaryIcon, isDisabled, isFocused);
209
209
  return (React.createElement(React.Fragment, null,
210
210
  hasDivider && React.createElement(Divider, null),
211
- React.createElement(Item, __assign({ ref: this.ref, tabIndex: -1, id: id, role: role, onClick: this.handleClick, "aria-disabled": !!isDisabled, isDisabled: !!isDisabled, isFocused: !!isFocused }, elemProps),
211
+ React.createElement(Item, __assign({ ref: this.ref, tabIndex: -1, id: id, role: role, onClick: this.handleClick, "aria-disabled": isDisabled ? true : undefined, isDisabled: !!isDisabled, isFocused: !!isFocused }, elemProps),
212
212
  icon && iconProps && React.createElement(StyledSystemIcon, __assign({}, iconProps)),
213
213
  React.createElement(LabelContainer, null, children),
214
214
  secondaryIcon && secondaryIconProps && (React.createElement(SecondaryStyledSystemIcon, __assign({}, secondaryIconProps))))));
@@ -196,7 +196,7 @@ var MenuItem = /** @class */ (function (_super) {
196
196
  secondaryIconProps = setIconProps(secondaryIcon, isDisabled, isFocused);
197
197
  return (React.createElement(React.Fragment, null,
198
198
  hasDivider && React.createElement(Divider, null),
199
- React.createElement(Item, __assign({ ref: this.ref, tabIndex: -1, id: id, role: role, onClick: this.handleClick, "aria-disabled": !!isDisabled, isDisabled: !!isDisabled, isFocused: !!isFocused }, elemProps),
199
+ React.createElement(Item, __assign({ ref: this.ref, tabIndex: -1, id: id, role: role, onClick: this.handleClick, "aria-disabled": isDisabled ? true : undefined, isDisabled: !!isDisabled, isFocused: !!isFocused }, elemProps),
200
200
  icon && iconProps && React.createElement(StyledSystemIcon, __assign({}, iconProps)),
201
201
  React.createElement(LabelContainer, null, children),
202
202
  secondaryIcon && secondaryIconProps && (React.createElement(SecondaryStyledSystemIcon, __assign({}, secondaryIconProps))))));
@@ -274,7 +274,7 @@ class MenuItem extends React.Component<MenuItemProps> {
274
274
  id={id}
275
275
  role={role}
276
276
  onClick={this.handleClick}
277
- aria-disabled={!!isDisabled}
277
+ aria-disabled={isDisabled ? true : undefined}
278
278
  isDisabled={!!isDisabled}
279
279
  isFocused={!!isFocused}
280
280
  {...elemProps}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-preview-react",
3
- "version": "6.3.2",
3
+ "version": "6.3.3",
4
4
  "description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -54,15 +54,15 @@
54
54
  "dependencies": {
55
55
  "@emotion/core": "^10.0.28",
56
56
  "@emotion/styled": "^10.0.27",
57
- "@workday/canvas-kit-react": "^6.3.2",
57
+ "@workday/canvas-kit-react": "^6.3.3",
58
58
  "@workday/canvas-system-icons-web": "1.0.41",
59
59
  "@workday/design-assets-types": "^0.2.4"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@workday/canvas-accent-icons-web": "^1.0.0",
63
- "@workday/canvas-kit-labs-react": "^6.3.2",
63
+ "@workday/canvas-kit-labs-react": "^6.3.3",
64
64
  "formik": "^2.2.9",
65
65
  "yup": "^0.31.1"
66
66
  },
67
- "gitHead": "5f58fc1dee07c295db44d0b064b6ef384dcdc9c8"
67
+ "gitHead": "51dae8197af8debcac3aaa6229e113ac18fe195c"
68
68
  }