@yuneta/gobj-ui 7.23.98 → 7.23.100

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.
@@ -63567,9 +63567,9 @@ function refresh_legend(gobj) {
63567
63567
  if (is_main && state.main_chosen) extras.push([
63568
63568
  "button",
63569
63569
  {
63570
- class: "GRAPH_LEGEND_STAR button pressed_state",
63570
+ class: "GRAPH_LEGEND_STAR button",
63571
63571
  type: "button",
63572
- style: "padding:0 .5rem;",
63572
+ style: "padding:0 .5rem; box-shadow: inset 0 0 0 2px var(--bulma-text, #2e333d);",
63573
63573
  title: (0, i18next.t)("main topic"),
63574
63574
  "data-i18n-title": "main topic",
63575
63575
  "aria-label": (0, i18next.t)("main topic"),
@@ -63562,9 +63562,9 @@ function refresh_legend(gobj) {
63562
63562
  if (is_main && state.main_chosen) extras.push([
63563
63563
  "button",
63564
63564
  {
63565
- class: "GRAPH_LEGEND_STAR button pressed_state",
63565
+ class: "GRAPH_LEGEND_STAR button",
63566
63566
  type: "button",
63567
- style: "padding:0 .5rem;",
63567
+ style: "padding:0 .5rem; box-shadow: inset 0 0 0 2px var(--bulma-text, #2e333d);",
63568
63568
  title: t("main topic"),
63569
63569
  "data-i18n-title": "main topic",
63570
63570
  "aria-label": t("main topic"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.23.98",
3
+ "version": "7.23.100",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -2632,8 +2632,17 @@ function refresh_legend(gobj)
2632
2632
  * is a button too: pressing it hands the choice back to the
2633
2633
  * graph (deduced again). On a deduced one it is a mark. */
2634
2634
  if(is_main && state.main_chosen) {
2635
- extras.push(['button', {class: 'GRAPH_LEGEND_STAR button pressed_state',
2636
- type: 'button', style: 'padding:0 .5rem;',
2635
+ /* MARKED, not pressed -- the same distinction the focused
2636
+ * chip makes two constants above, and for the same reason
2637
+ * here: the star IS the gold mark of the main topic, and a
2638
+ * `pressed_state` repaints the ground under it. 7.23.99
2639
+ * made the glyph inherit the pressed ink so it could be
2640
+ * seen at all; that cost the colour, which is what the
2641
+ * star says. The ring inside the border marks the CHOICE
2642
+ * and leaves the gold alone. */
2643
+ extras.push(['button', {class: 'GRAPH_LEGEND_STAR button',
2644
+ type: 'button',
2645
+ style: 'padding:0 .5rem; ' + LEGEND_FOCUSED_STYLE,
2637
2646
  title: t('main topic'), 'data-i18n-title': 'main topic',
2638
2647
  'aria-label': t('main topic'),
2639
2648
  'data-i18n-aria-label': 'main topic',