question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Styling: classes aren't applied to elements.

See original GitHub issue

Styling: classDef and classes aren’t applied to elements. Example:

graph TD
A-->B
C-->D
classDef def fill:#00f
class A def

Element A is green, but should be blue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:10

github_iconTop GitHub Comments

3reactions
ghostcommented, Feb 28, 2018

Same here. I am being able to style each node individually:

screenshot_2

But when I try doing it with classDef nothing happens:

screenshot_1

Naming it default does nothing as well:

screenshot_3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styling: classes aren't applied to elements. · Issue #582 - GitHub
Styling : classDef and classes aren't applied to elements. ... Element A is green, but should be blue. The text was updated successfully,...
Read more >
CSS class not styling element - html - Stack Overflow
First of all make sure this is the actual order of your css styles, because the later will override the first.
Read more >
CSS Class Selectors: How to Use to Style an HTML Element
Do you want to stylize HTML elements without hassle? CSS classes will help you do the job! Here, you'll learn how to use...
Read more >
Style Manager | Webflow University
Use the Style Manager to rename, clean up, and search for classes and tags. ... If a class isn't applied to an element...
Read more >
Specificity - CSS: Cascading Style Sheets - MDN Web Docs
Specificity is the algorithm used by browsers to determine the CSS declaration that is the most relevant to an element, which in turn, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found