Docs CSS incorrect, unclear what is correct #6419
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
According to the docs, it's possible to define the styling of a node in a Flowchart graph via CSS. The example given looks like this:
(Replacing
.cssClass
with the defind class in question.) In my experiments, though, that doesn't work. The built-in default styling has a higher specificity than that, so this rule is ignored.A workaround is to throw
!important
on each rule, but that is pretty much always the wrong answer. I am unclear what the right answer is. It is likely just a docs update from someone who does know how this should work (which is not me).Steps to reproduce
See the attached code. It's a fully self-contained page that uses the docs example verbatim, but the CSS class is clearly not being applied.
Screenshots
Code Sample
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: