Skip to content

feat(sphere): legend row toggle + info icon link - #210

Merged
ronaldtse merged 1 commit into
mainfrom
feat/legend-toggle-row
Aug 12, 2026
Merged

feat(sphere): legend row toggle + info icon link#210
ronaldtse merged 1 commit into
mainfrom
feat/legend-toggle-row

Conversation

@ronaldtse

Copy link
Copy Markdown
Member

Summary

Legend rows in the relation sphere are now full-row toggles with an info icon.

Changes:

  • Entire row click toggles type on/off (was: only the small button)
  • ? info icon opens /learn/relationships#type in a new tab
  • @click.stop on the info icon prevents accidental toggling
  • role="switch" + aria-checked for accessibility
  • Removed button wrapper + router-link (replaced with plain label span)

Test plan

  • 1566 tests pass
  • Build succeeds

- Entire legend row is now a toggle (click anywhere = toggle on/off)
- Swatch + count + label are visual only (no separate button)
- Added ? info icon that opens /learn/relationships#type in new tab
- @click.stop on info icon prevents toggling when clicking the link
- role=switch + aria-checked for accessibility
- Removed sp-legend-toggle button wrapper (no longer needed)
- Removed sp-legend-label router-link (replaced with plain span)
@ronaldtse
ronaldtse merged commit a3631a9 into main Aug 12, 2026
3 checks passed
@ronaldtse
ronaldtse deleted the feat/legend-toggle-row branch August 12, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant