carbon-react 102.8.1 → 102.9.0

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.
@@ -75,8 +75,8 @@ const StyledIcon = _styledComponents.default.span`
75
75
 
76
76
  try {
77
77
  if (disabled) {
78
- finalColor = theme.icon.disabled;
79
- finalHoverColor = theme.icon.disabled;
78
+ finalColor = "var(--colorsYin030)";
79
+ finalHoverColor = "var(--colorsYin030)";
80
80
  } else if (typeof color === "string" && color.startsWith("var")) {
81
81
  finalColor = color;
82
82
  finalHoverColor = (0, _polished.shade)(0.2, theme.compatibility[color.replace("var(--", "").replace(")", "")]);
@@ -90,8 +90,8 @@ const StyledIcon = _styledComponents.default.span`
90
90
  finalColor = renderedColor;
91
91
  finalHoverColor = (0, _polished.shade)(0.2, renderedColor);
92
92
  } else {
93
- finalColor = theme.icon.default;
94
- finalHoverColor = theme.icon.defaultHover;
93
+ finalColor = "var(--colorsYin065)";
94
+ finalHoverColor = "var(--colorsYin090)";
95
95
  }
96
96
 
97
97
  if (bg) {
@@ -104,8 +104,8 @@ const StyledIcon = _styledComponents.default.span`
104
104
  bgColor = backgroundColor;
105
105
  bgHoverColor = (0, _polished.shade)(0.2, backgroundColor);
106
106
  } else if (disabled) {
107
- bgColor = theme.icon.disabled;
108
- bgHoverColor = theme.icon.disabled;
107
+ bgColor = "var(--colorsYin030)";
108
+ bgHoverColor = "var(--colorsYin030)";
109
109
  } else {
110
110
  bgColor = "transparent";
111
111
  bgHoverColor = "transparent";
@@ -159,7 +159,7 @@ const StyledIcon = _styledComponents.default.span`
159
159
 
160
160
  ${hasTooltip && `
161
161
  :focus {
162
- outline: 2px solid ${theme.colors.focus};
162
+ outline: 2px solid var(--colorsSemanticFocus500);
163
163
  }
164
164
  `}
165
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "102.8.1",
3
+ "version": "102.9.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {
@@ -145,7 +145,7 @@
145
145
  "dependencies": {
146
146
  "@octokit/rest": "^18.12.0",
147
147
  "@popperjs/core": "^2.9.0",
148
- "@sage/design-tokens": "^1.80.0",
148
+ "@sage/design-tokens": "^1.87.0",
149
149
  "@styled-system/prop-types": "^5.1.5",
150
150
  "@tippyjs/react": "^4.2.5",
151
151
  "classnames": "~2.2.6",