carbon-react 142.2.0 → 142.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.
@@ -111,7 +111,7 @@ const Icon = /*#__PURE__*/React.forwardRef(({
111
111
  return tooltipVisibleFromContext !== undefined ? tooltipVisibleFromContext : tooltipVisible;
112
112
  };
113
113
  if (tooltipMessage) {
114
- const visible = disabled ? undefined : shouldShowTooltip();
114
+ const visible = disabled ? false : shouldShowTooltip();
115
115
  return /*#__PURE__*/React.createElement(Tooltip, {
116
116
  message: tooltipMessage,
117
117
  position: tooltipPositionFromContext || tooltipPosition,
@@ -26,6 +26,10 @@ function adjustIconBgSize(fontSize, bgSize) {
26
26
  }
27
27
  return iconConfig.backgroundSize[bgSize];
28
28
  }
29
+
30
+ /* The below is ignored as removing it may cause regressions as some components import StyledIcon directly from this file
31
+ however it cannot be tested in the Icon tests as these props always have a value. */
32
+ /* istanbul ignore next */
29
33
  return bgSize ? iconConfig.backgroundSize[bgSize] : undefined;
30
34
  }
31
35
  const oldFocusStyling = "outline: 2px solid var(--colorsSemanticFocus500);";
@@ -120,7 +120,7 @@ const Icon = /*#__PURE__*/_react.default.forwardRef(({
120
120
  return tooltipVisibleFromContext !== undefined ? tooltipVisibleFromContext : tooltipVisible;
121
121
  };
122
122
  if (tooltipMessage) {
123
- const visible = disabled ? undefined : shouldShowTooltip();
123
+ const visible = disabled ? false : shouldShowTooltip();
124
124
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
125
125
  message: tooltipMessage,
126
126
  position: tooltipPositionFromContext || tooltipPosition,
@@ -35,6 +35,10 @@ function adjustIconBgSize(fontSize, bgSize) {
35
35
  }
36
36
  return _iconConfig.default.backgroundSize[bgSize];
37
37
  }
38
+
39
+ /* The below is ignored as removing it may cause regressions as some components import StyledIcon directly from this file
40
+ however it cannot be tested in the Icon tests as these props always have a value. */
41
+ /* istanbul ignore next */
38
42
  return bgSize ? _iconConfig.default.backgroundSize[bgSize] : undefined;
39
43
  }
40
44
  const oldFocusStyling = "outline: 2px solid var(--colorsSemanticFocus500);";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "142.2.0",
3
+ "version": "142.2.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",