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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flowchart classDef font-size is rendered properly in LiveEditor, but not in Github renderer #4863

Closed
injecteer opened this issue Sep 21, 2023 · 1 comment
Labels
Close after 30 days Close issue if no response after 30 days Type: Bug / Error Something isn't working or is incorrect

Comments

@injecteer
Copy link

Description

In my flochart diagram I have the following classDef with font-size:x-small.

in LiveEditor it works like charm and looks as expected.

grafik

Although if I put the very same code into a README.md and view it on Github, the text inside boxes with :::ext is rendered small, but the boxes themselves are displayed in original size:

grafik

Steps to reproduce

  1. the working example it here
  2. the Github README.md is here

Screenshots

LiveEditor
grafik

Github
grafik

Code Sample

flowchart BT
	classDef ext font-size:x-small, color:#888
	domain-info(["🛈 The library provides core resources, vert.x components and domain classes"]):::ext


### Setup

- Mermaid version: 10.4.0
- Firefox 115.2.1esr (64-Bit)
- Chrome Version 117.0.5938.63 (64-Bit)

### Suggested Solutions

_No response_

### Additional Context

_No response_
@injecteer injecteer added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Sep 21, 2023
@sidharthv96
Copy link
Member

It could be because GitHub is on an older version of mermaid, and I don't think we can do anything about it.

👇

info
Loading

@sidharthv96 sidharthv96 added Close after 30 days Close issue if no response after 30 days and removed Status: Triage Needs to be verified, categorized, etc labels Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Close after 30 days Close issue if no response after 30 days Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

3 participants