@empoweredvote/ev-ui 0.8.10 → 0.8.11

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/dist/index.mjs CHANGED
@@ -24,7 +24,8 @@ function RadarChartCore({
24
24
  // replacedSpokes: short_titles of substitute spokes (not the user's original defaults)
25
25
  replacedSpokes = {},
26
26
  // boldOriginalSpokes: when true, bold spokes that are NOT replacements
27
- boldOriginalSpokes = false
27
+ boldOriginalSpokes = false,
28
+ highlightedSpoke = null
28
29
  }) {
29
30
  var _a;
30
31
  const radius = size / 2 - 40;
@@ -217,7 +218,7 @@ function RadarChartCore({
217
218
  textAnchor: "middle",
218
219
  dominantBaseline: isBottom ? "hanging" : "auto",
219
220
  onClick: () => onReplaceTopic(shortTitle),
220
- fill: isActive ? "#E85D26" : isUnansweredLabel ? "#9ca3af" : darkMode ? "#D3D7DE" : "#555",
221
+ fill: isActive ? "#E85D26" : shortTitle === highlightedSpoke ? darkMode ? "#7DD4E8" : "#59B0C4" : isUnansweredLabel ? "#9ca3af" : darkMode ? "#D3D7DE" : "#555",
221
222
  fontWeight: isActive || shouldBold ? "bold" : "normal",
222
223
  style: { cursor: "pointer", userSelect: "none", fontSize: fSize, fontFamily: "sans-serif" }
223
224
  },