@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.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115,7 +115,8 @@ function RadarChartCore({
|
|
|
115
115
|
// replacedSpokes: short_titles of substitute spokes (not the user's original defaults)
|
|
116
116
|
replacedSpokes = {},
|
|
117
117
|
// boldOriginalSpokes: when true, bold spokes that are NOT replacements
|
|
118
|
-
boldOriginalSpokes = false
|
|
118
|
+
boldOriginalSpokes = false,
|
|
119
|
+
highlightedSpoke = null
|
|
119
120
|
}) {
|
|
120
121
|
var _a;
|
|
121
122
|
const radius = size / 2 - 40;
|
|
@@ -308,7 +309,7 @@ function RadarChartCore({
|
|
|
308
309
|
textAnchor: "middle",
|
|
309
310
|
dominantBaseline: isBottom ? "hanging" : "auto",
|
|
310
311
|
onClick: () => onReplaceTopic(shortTitle),
|
|
311
|
-
fill: isActive ? "#E85D26" : isUnansweredLabel ? "#9ca3af" : darkMode ? "#D3D7DE" : "#555",
|
|
312
|
+
fill: isActive ? "#E85D26" : shortTitle === highlightedSpoke ? darkMode ? "#7DD4E8" : "#59B0C4" : isUnansweredLabel ? "#9ca3af" : darkMode ? "#D3D7DE" : "#555",
|
|
312
313
|
fontWeight: isActive || shouldBold ? "bold" : "normal",
|
|
313
314
|
style: { cursor: "pointer", userSelect: "none", fontSize: fSize, fontFamily: "sans-serif" }
|
|
314
315
|
},
|