Skip to content

fix(class): support styling and callbacks for generic classes - #1

Merged
Dharya-dev merged 1 commit into
developfrom
fix/class-diagram-generic-css
May 17, 2026
Merged

Dharya-dev merged 1 commit into
developfrom
fix/class-diagram-generic-css

Conversation

@Dharya-dev

Copy link
Copy Markdown
Owner

Fixes an issue where generic classes (e.g., Class~T~) in class diagrams could not receive CSS styles or callback events.

Changes:

  • Updates setter functions in classDb.ts to normalize class IDs by stripping generic signatures before updating the class nodes.
  • Adds regression tests to classDiagram.spec.ts for applying styles via both explicit class statements and shorthand syntax, and for verifying callback bindings on generic classes.

@Dharya-dev
Dharya-dev merged commit 16a60eb into develop May 17, 2026
Dharya-dev added a commit that referenced this pull request May 18, 2026
Co-authored-by: Dharya-dev <Dharya-dev@users.noreply.github.com>
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