@thecb/components 9.1.7-beta.1 → 9.1.7-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "9.1.7-beta.1",
3
+ "version": "9.1.7-beta.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -61,7 +61,9 @@ const DropdownItemWrapper = styled.li`
61
61
  border-width: 2px;
62
62
  border-style: solid;
63
63
  border-color: ${({ selected, themeValues }) =>
64
- selected ? themeValues.selectedColor : TRANSPARENT};
64
+ selected
65
+ ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0)
66
+ : TRANSPARENT};
65
67
  box-shadow: none;
66
68
  box-sizing: border-box;
67
69
  width: 100%;
@@ -71,18 +73,21 @@ const DropdownItemWrapper = styled.li`
71
73
  &:hover {
72
74
  background: ${({ selected, disabled, themeValues }) =>
73
75
  selected
74
- ? themeValues.selectedColor
76
+ ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0)
75
77
  : disabled
76
78
  ? WHITE
77
79
  : themeValues.hoverColor};
78
80
  > * {
79
81
  background: ${({ selected, disabled, themeValues }) =>
80
82
  selected
81
- ? themeValues.selectedColor
83
+ ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0)
82
84
  : disabled
83
85
  ? WHITE
84
86
  : themeValues.hoverColor};
85
- border-color: ${({ themeValues }) => themeValues.hoverColor};
87
+ border-color: ${({ selected, themeValues }) =>
88
+ selected
89
+ ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0)
90
+ : themeValues.hoverColor};
86
91
  }
87
92
  }
88
93
  &:focus {