Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add classes to ERD elements #1535

Merged
merged 2 commits into from Jul 12, 2020
Merged

Conversation

72636c
Copy link
Contributor

@72636c 72636c commented Jul 11, 2020

馃搼 Summary

It's a little hard to style the current ERDs. This aims to make things easier by associating a distinct class with each type of element within the diagram.

馃搹 Design Decisions

  • I've added a common er class across the elements so that those that bring their own themeCSS can target styles at this diagram type. This hasn't really been done elsewhere so I'm open to suggestions; an alternative may be to add classes to a top-level element so that we can do e.g. svg.mermaid.er .entityBox.

馃搵 Tasks

Make sure you

  • 馃摉 have read the contribution guidelines
  • 馃捇 have added unit/e2e tests (if appropriate)
  • 馃敄 targeted develop branch

It's a little hard to style the current ERDs. This aims to make things
easier by associating a distinct class with each type of element within
the diagram.

I've added a common `er` class across the elements so that those that
bring their own `themeCSS` can target styles at this diagram type. This
hasn't really been done elsewhere so I'm open to suggestions; an
alternative may be to add classes to a top-level element so that we can
do e.g. `svg.mermaid.er .entityBox`.
@knsv knsv merged commit 12668b7 into mermaid-js:develop Jul 12, 2020
@72636c 72636c deleted the feature/er_classes branch July 12, 2020 09:09
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.

None yet

4 participants