carbon-react 104.41.0 → 104.42.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.
@@ -4,9 +4,6 @@ import baseTheme from "../../style/themes/base";
4
4
  import StyledIcon from "../icon/icon.style";
5
5
  const StyledHelp = styled.div`
6
6
  background: none;
7
- color: ${({
8
- theme
9
- }) => theme.help.color};
10
7
  cursor: default;
11
8
  border: none;
12
9
  outline: none;
@@ -18,24 +15,24 @@ const StyledHelp = styled.div`
18
15
  margin-top: 0;
19
16
  text-decoration: none;
20
17
 
18
+ ${StyledIcon} {
19
+ color: var(--colorsUtilityYin065);
20
+ }
21
+
21
22
  ${({
22
23
  href
23
24
  }) => href && css`
24
25
  cursor: pointer;
25
26
  `}
26
27
 
27
- &:focus,
28
- &:hover {
29
- color: ${({
30
- theme
31
- }) => theme.help.hover};
28
+ &:focus ${StyledIcon},
29
+ &:hover ${StyledIcon} {
30
+ color: var(--colorsUtilityYin090);
32
31
  text-decoration: none;
33
32
  }
34
33
 
35
34
  &:focus ${StyledIcon} {
36
- outline: ${({
37
- theme
38
- }) => `2px solid ${theme.colors.focus}`};
35
+ outline: 2px solid var(--colorsSemanticFocus500);
39
36
  }
40
37
 
41
38
  ${margin}
@@ -21,9 +21,6 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
21
21
 
22
22
  const StyledHelp = _styledComponents.default.div`
23
23
  background: none;
24
- color: ${({
25
- theme
26
- }) => theme.help.color};
27
24
  cursor: default;
28
25
  border: none;
29
26
  outline: none;
@@ -35,24 +32,24 @@ const StyledHelp = _styledComponents.default.div`
35
32
  margin-top: 0;
36
33
  text-decoration: none;
37
34
 
35
+ ${_icon.default} {
36
+ color: var(--colorsUtilityYin065);
37
+ }
38
+
38
39
  ${({
39
40
  href
40
41
  }) => href && (0, _styledComponents.css)`
41
42
  cursor: pointer;
42
43
  `}
43
44
 
44
- &:focus,
45
- &:hover {
46
- color: ${({
47
- theme
48
- }) => theme.help.hover};
45
+ &:focus ${_icon.default},
46
+ &:hover ${_icon.default} {
47
+ color: var(--colorsUtilityYin090);
49
48
  text-decoration: none;
50
49
  }
51
50
 
52
51
  &:focus ${_icon.default} {
53
- outline: ${({
54
- theme
55
- }) => `2px solid ${theme.colors.focus}`};
52
+ outline: 2px solid var(--colorsSemanticFocus500);
56
53
  }
57
54
 
58
55
  ${_styledSystem.margin}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.41.0",
3
+ "version": "104.42.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {