carbon-react 102.4.4 → 102.4.5

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.
@@ -51,6 +51,7 @@ function renderChildren({
51
51
  darkBackground: theme.colors.primary
52
52
  };
53
53
  const iconProps = {
54
+ "aria-hidden": true,
54
55
  type: iconType,
55
56
  disabled,
56
57
  bgSize: "extra-small",
@@ -54,6 +54,7 @@ const Icon = /*#__PURE__*/_react.default.forwardRef(({
54
54
  inputSize,
55
55
  role,
56
56
  ariaLabel,
57
+ "aria-hidden": ariaHidden,
57
58
  focusable = true,
58
59
  ...rest
59
60
  }, ref) => {
@@ -113,6 +114,7 @@ const Icon = /*#__PURE__*/_react.default.forwardRef(({
113
114
  }, (0, _tags.default)("icon", rest), styleProps, {
114
115
  hasTooltip: hasTooltip,
115
116
  "aria-label": ariaLabel,
117
+ "aria-hidden": ariaHidden,
116
118
  role: hasTooltip && role === undefined ? "tooltip" : role
117
119
  }));
118
120
 
@@ -173,6 +175,9 @@ Icon.propTypes = { ...marginPropTypes,
173
175
  /** Aria label for accessibility purposes */
174
176
  ariaLabel: _propTypes.default.string,
175
177
 
178
+ /** Set whether icon should be recognised by assistive technologies */
179
+ "aria-hidden": _propTypes.default.bool,
180
+
176
181
  /** The message to be displayed within the tooltip */
177
182
  tooltipMessage: _propTypes.default.node,
178
183
 
@@ -221,6 +221,8 @@ export interface IconProps extends MarginProps {
221
221
  disabled?: boolean;
222
222
  /** Aria label for accessibility purposes */
223
223
  ariaLabel?: string;
224
+ /** Set whether icon should be recognised by assistive technologies */
225
+ "aria-hidden"?: boolean;
224
226
  /** The message to be displayed within the tooltip */
225
227
  tooltipMessage?: React.ReactNode;
226
228
  /** The position to display the tooltip */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "102.4.4",
3
+ "version": "102.4.5",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {
@@ -60,8 +60,8 @@
60
60
  "@babel/preset-typescript": "7.12.7",
61
61
  "@commitlint/cli": "^11.0.0",
62
62
  "@commitlint/config-conventional": "^11.0.0",
63
- "@cypress/react": "^5.9.2",
64
- "@cypress/webpack-dev-server": "^1.4.0",
63
+ "@cypress/react": "^5.12.0",
64
+ "@cypress/webpack-dev-server": "^1.8.0",
65
65
  "@semantic-release/changelog": "^6.0.1",
66
66
  "@semantic-release/exec": "^6.0.2",
67
67
  "@semantic-release/git": "^10.0.1",
@@ -98,12 +98,12 @@
98
98
  "core-js": "^3.1.4",
99
99
  "cpy-cli": "^3.1.1",
100
100
  "cross-env": "^5.2.0",
101
- "cypress": "^9.0.0",
101
+ "cypress": "^9.2.0",
102
102
  "cypress-axe": "^0.13.0",
103
- "cypress-cucumber-preprocessor": "^4.3.0",
104
- "cypress-each": "^1.5.0",
103
+ "cypress-cucumber-preprocessor": "^4.3.1",
104
+ "cypress-each": "^1.10.0",
105
105
  "cypress-plugin-tab": "^1.0.5",
106
- "cypress-real-events": "^1.5.1",
106
+ "cypress-real-events": "^1.6.0",
107
107
  "cypress-storybook": "^0.5.1",
108
108
  "cz-conventional-changelog": "^3.3.0",
109
109
  "draft-js": "^0.11.7",