@sproutsocial/racine 8.6.2 → 8.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 777fcd7: Unset inverted icon color when menu item is hovered and active
8
+
3
9
  ## 8.6.2
4
10
 
5
11
  ### Patch Changes
@@ -413,6 +413,11 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
413
413
  background-color: #f3f4f4;
414
414
  }
415
415
 
416
+ .c6:focus .Icon-svg,
417
+ .c6:hover .Icon-svg {
418
+ color: unset;
419
+ }
420
+
416
421
  .c6:hover {
417
422
  cursor: pointer;
418
423
  }
@@ -446,6 +451,11 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
446
451
  background-color: #f3f4f4;
447
452
  }
448
453
 
454
+ .c4:focus .Icon-svg,
455
+ .c4:hover .Icon-svg {
456
+ color: unset;
457
+ }
458
+
449
459
  .c4:hover {
450
460
  cursor: pointer;
451
461
  }
@@ -698,6 +708,11 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
698
708
  background-color: #f3f4f4;
699
709
  }
700
710
 
711
+ .c7:focus .Icon-svg,
712
+ .c7:hover .Icon-svg {
713
+ color: unset;
714
+ }
715
+
701
716
  .c7:hover {
702
717
  cursor: pointer;
703
718
  }
@@ -731,6 +746,11 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
731
746
  background-color: #f3f4f4;
732
747
  }
733
748
 
749
+ .c5:focus .Icon-svg,
750
+ .c5:hover .Icon-svg {
751
+ color: unset;
752
+ }
753
+
734
754
  .c5:hover {
735
755
  cursor: pointer;
736
756
  }
@@ -47,6 +47,11 @@ exports[`Menu AsMenu should match snapshot 1`] = `
47
47
  background-color: #f3f4f4;
48
48
  }
49
49
 
50
+ .c7:focus .Icon-svg,
51
+ .c7:hover .Icon-svg {
52
+ color: unset;
53
+ }
54
+
50
55
  .c7:hover {
51
56
  cursor: pointer;
52
57
  }
@@ -80,6 +85,11 @@ exports[`Menu AsMenu should match snapshot 1`] = `
80
85
  background-color: #f3f4f4;
81
86
  }
82
87
 
88
+ .c6:focus .Icon-svg,
89
+ .c6:hover .Icon-svg {
90
+ color: unset;
91
+ }
92
+
83
93
  .c6:hover {
84
94
  cursor: pointer;
85
95
  }
@@ -5,6 +5,7 @@ import OverflowList from "../OverflowList";
5
5
  import Icon from "../Icon";
6
6
  import { names } from "./names";
7
7
  import Text from "../Text";
8
+ import Box from "../Box";
8
9
 
9
10
  const fruit = ["Apple", "Banana", "Orange"];
10
11
  const maybeFruit = ["Tomato", "Cucumber", "Squash"];
@@ -207,19 +208,28 @@ export const MenuWithCheckboxes = (props) => {
207
208
  // Specifically testing that icons with a color inverse when active like the text does.
208
209
  export const MenuWithIcons = (props) => {
209
210
  return (
210
- <Menu width="200px" {...props}>
211
- <Menu.Item key="positive" onClick={() => alert("positive")}>
212
- <Icon name="flat-positive-sentiment" mr={200} color="blue.600" />
213
- Positive
214
- </Menu.Item>
215
- <Menu.Item key="negative" onClick={() => alert("negative")}>
216
- <Icon name="flat-negative-sentiment" mr={200} color="red.500" />
217
- Negative
218
- </Menu.Item>
219
- <Menu.Item key="neutral" onClick={() => alert("neutral")}>
220
- <Icon name="flat-neutral-sentiment" mr={200} />
221
- Neutral
222
- </Menu.Item>
223
- </Menu>
211
+ <Box
212
+ width="200px"
213
+ border={500}
214
+ borderRadius="outer"
215
+ borderColor="container.border.base"
216
+ boxShadow={300}
217
+ backgroundColor="container.background.base"
218
+ >
219
+ <Menu {...props}>
220
+ <Menu.Item key="positive" onClick={() => alert("positive")}>
221
+ <Icon name="flat-positive-sentiment" mr={200} color="icon.info" />
222
+ Positive
223
+ </Menu.Item>
224
+ <Menu.Item key="negative" onClick={() => alert("negative")}>
225
+ <Icon name="flat-negative-sentiment" mr={200} color="icon.error" />
226
+ Negative
227
+ </Menu.Item>
228
+ <Menu.Item key="neutral" onClick={() => alert("neutral")}>
229
+ <Icon name="flat-neutral-sentiment" mr={200} />
230
+ Neutral
231
+ </Menu.Item>
232
+ </Menu>
233
+ </Box>
224
234
  );
225
235
  };
@@ -62,6 +62,10 @@ export const MenuItemContainer = styled<
62
62
  color: ${(props) => props.theme.colors.text.body};
63
63
  background-color: ${(props) =>
64
64
  props.theme.colors.listItem.background.hover};
65
+
66
+ .Icon-svg {
67
+ color: unset;
68
+ }
65
69
  }
66
70
  `}
67
71
 
@@ -45,7 +45,7 @@ var MenuItemContainer = (0, _styledComponents.default)(_Box.default).withConfig(
45
45
  return props.theme.fontWeights.semibold;
46
46
  });
47
47
  }, function (props) {
48
- return !props.disabled && (0, _styledComponents.css)(["&:focus,&:hover{color:", ";background-color:", ";}"], function (props) {
48
+ return !props.disabled && (0, _styledComponents.css)(["&:focus,&:hover{color:", ";background-color:", ";.Icon-svg{color:unset;}}"], function (props) {
49
49
  return props.theme.colors.text.body;
50
50
  }, function (props) {
51
51
  return props.theme.colors.listItem.background.hover;
@@ -31,7 +31,7 @@ export var MenuItemContainer = styled(Box).withConfig({
31
31
  return props.theme.fontWeights.semibold;
32
32
  });
33
33
  }, function (props) {
34
- return !props.disabled && css(["&:focus,&:hover{color:", ";background-color:", ";}"], function (props) {
34
+ return !props.disabled && css(["&:focus,&:hover{color:", ";background-color:", ";.Icon-svg{color:unset;}}"], function (props) {
35
35
  return props.theme.colors.text.body;
36
36
  }, function (props) {
37
37
  return props.theme.colors.listItem.background.hover;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "8.6.2",
3
+ "version": "8.6.3",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",