@kaizen/components 1.70.17 → 1.70.18

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": "@kaizen/components",
3
- "version": "1.70.17",
3
+ "version": "1.70.18",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -174,8 +174,8 @@
174
174
  "svgo": "^3.3.2",
175
175
  "tslib": "^2.8.1",
176
176
  "tsx": "^4.19.2",
177
- "@kaizen/package-bundler": "2.0.4",
178
- "@kaizen/design-tokens": "10.8.7"
177
+ "@kaizen/design-tokens": "10.8.7",
178
+ "@kaizen/package-bundler": "2.0.4"
179
179
  },
180
180
  "devDependenciesComments": {
181
181
  "sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
@@ -36,7 +36,7 @@ $focus-ring-offset: 1px;
36
36
  }
37
37
 
38
38
  .checkbox:not(.disabled) + &:hover,
39
- label:hover .checkbox + & {
39
+ label:hover .checkbox:not(.disabled) + & {
40
40
  background-color: $color-purple-500;
41
41
  background-color: $color-gray-600;
42
42
  }
@@ -55,6 +55,7 @@ $focus-ring-offset: 1px;
55
55
  transition:
56
56
  left $animation-timing,
57
57
  right $animation-timing;
58
+ cursor: default;
58
59
  }
59
60
 
60
61
  .checkIcon {
@@ -72,7 +73,7 @@ $focus-ring-offset: 1px;
72
73
 
73
74
  .checkbox:focus + .track {
74
75
  border-color: transparent;
75
- background-color: $color-green-500;
76
+ background-color: $color-green-600;
76
77
  }
77
78
 
78
79
  .thumb {
@@ -88,7 +89,7 @@ $focus-ring-offset: 1px;
88
89
  }
89
90
 
90
91
  .checkbox:not(.disabled) + .track:hover,
91
- label:hover & .checkbox + .track {
92
+ label:hover & .checkbox:not(.disabled) + .track {
92
93
  background-color: $color-green-600;
93
94
  }
94
95
  }
@@ -118,10 +119,19 @@ $focus-ring-offset: 1px;
118
119
  }
119
120
 
120
121
  .checkbox:not(.disabled) + .track:hover,
121
- label:hover & .checkbox + .track {
122
+ label:hover & .checkbox:not(.disabled) + .track {
122
123
  background-color: rgba($color-white-rgb, 0.65);
123
124
  }
124
125
  }
125
126
  }
126
127
 
128
+ // When the ToggleSwitch is used as part of the ToggleSwitchField, the disabled state opacity is set on the Label component
129
+ label .disabled.track {
130
+ opacity: 100%;
131
+ }
132
+
133
+ .disabled.track {
134
+ opacity: 30%;
135
+ }
136
+
127
137
  /* stylelint-enable no-descending-specificity */