@yuneta/gobj-ui 7.4.1 → 7.4.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.
@@ -19915,7 +19915,7 @@ function refresh_legend(gobj) {
19915
19915
  let $item = (0, _yuneta_gobj_js.createElement2)([
19916
19916
  "button",
19917
19917
  {
19918
- class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary" : ""),
19918
+ class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary is-light" : ""),
19919
19919
  title: topic_name,
19920
19920
  "aria-label": topic_name,
19921
19921
  "aria-pressed": focused ? "true" : "false"
@@ -19902,7 +19902,7 @@ function refresh_legend(gobj) {
19902
19902
  let $item = createElement2([
19903
19903
  "button",
19904
19904
  {
19905
- class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary" : ""),
19905
+ class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary is-light" : ""),
19906
19906
  title: topic_name,
19907
19907
  "aria-label": topic_name,
19908
19908
  "aria-pressed": focused ? "true" : "false"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.4.1",
3
+ "version": "7.4.2",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -2259,8 +2259,11 @@ function refresh_legend(gobj)
2259
2259
  let focused = (priv.focus_topic === topic_name);
2260
2260
  let $item = createElement2(
2261
2261
  ['button', {
2262
+ /* `is-light` on the focused one, not solid `is-primary`:
2263
+ * the solid fill sat right behind the swatch and swallowed
2264
+ * the one colour the entry exists to show. */
2262
2265
  class: 'GRAPH_LEGEND_ITEM button is-small' +
2263
- (focused? ' is-primary' : ''),
2266
+ (focused? ' is-primary is-light' : ''),
2264
2267
  title: topic_name,
2265
2268
  'aria-label': topic_name,
2266
2269
  'aria-pressed': focused? 'true' : 'false'