dce-reactkit 3.7.30 → 3.7.32

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": "dce-reactkit",
3
- "version": "3.7.30",
3
+ "version": "3.7.32",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -188,6 +188,7 @@ const MultiSwitch: React.FC<Props> = (props) => {
188
188
 
189
189
  .MultiSwitch-icon {
190
190
  font-size: ${iconFontSize}rems !important;
191
+ color: white;
191
192
  }
192
193
 
193
194
  .MultiSwitch-option-button {
@@ -214,7 +215,7 @@ const MultiSwitch: React.FC<Props> = (props) => {
214
215
  }
215
216
 
216
217
  .MultiSwitch-option-button-hovered {
217
- background-color: #eee !important;
218
+ background-color: #545454 !important;
218
219
  }
219
220
 
220
221
  .MultiSwitch-option-text {
@@ -224,6 +225,12 @@ const MultiSwitch: React.FC<Props> = (props) => {
224
225
  white-space: nowrap;
225
226
  width: 100%;
226
227
  text-align: center !important;
228
+
229
+ color: white !important;
230
+ }
231
+
232
+ .MultiSwitch-option-text-selected {
233
+ font-weight: bold;
227
234
  }
228
235
 
229
236
  .MultiSwitch-highlight-container {
@@ -316,12 +323,12 @@ const MultiSwitch: React.FC<Props> = (props) => {
316
323
  }}
317
324
  disabled={option.id === selectedOptionId}
318
325
  >
319
- <div className="MultiSelect-icon">
326
+ <div className={`MultiSwitch-icon MultiSwitch-icon-${isSelected ? 'selected' : ''}`}>
320
327
  <FontAwesomeIcon
321
328
  icon={option.icon}
322
329
  />
323
330
  </div>
324
- <div className="MultiSwitch-option-text">
331
+ <div className={`MultiSwitch-option-text MultiSwitch-option-text-${isSelected ? 'selected' : ''}`}>
325
332
  {option.label}
326
333
  </div>
327
334
  </button>
@@ -330,7 +337,7 @@ const MultiSwitch: React.FC<Props> = (props) => {
330
337
 
331
338
  // Highlight behind selected option
332
339
  const highlight = (
333
- <div className="MultiSwitch-highlight bg-warning d-inline-block" />
340
+ <div className="MultiSwitch-highlight bg-danger d-inline-block" />
334
341
  );
335
342
 
336
343
  return (