Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CSS multiple classes

ANSWERED

Are you aware that if you add in styles.css multiple classes for same structure then app do not load all css file at all. Is it written somewhere in the documentation?

 

This code makes styles.css invalid and not loaded at all

.class1, .class2 {
  fill: "fb-green";
}

This code works fine:

.class1 {
  fill: "fb-green";
} 
.class2 {
  fill: "fb-green";
}

 

Best Answer
1 BEST ANSWER

Accepted Solutions

So it was a bug. We'll fix it in a future release, thanks again for letting us know.

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

Thanks for letting us know. I need to check with the product team, but I think it may be a limitation more than a bug right now: if it's the case, I'll add it to the documentation and if not, we'll fix it.

 

The rest of the CSS is loaded, not just the faulty class.

Best Answer
0 Votes

So it was a bug. We'll fix it in a future release, thanks again for letting us know.

Best Answer
0 Votes

4 years later in 2022, SDK 6.2 and I experience still same bug with ignoring multiple CSS selectors.

So optimizations of the CSS coding is not possible.

 

Any plans to fix it?

 

Best Answer