I am working through the doc (very nice so far!). ...
# kvision
j
I am working through the doc (very nice so far!). I am struggeling with the CSS Styles (https://kvision.gitbook.io/kvision-guide/part-1-fundamentals/css-properties) --> The class is added to my div. But the content of the CSS style is nowhere to be found? I have 6 inlince css declarations - but none of them contains my properties defined in the style. Any hints? Am I missing something?
Ooh! It works if an event (e.g. a mouse enter on a link) happens. --> Suddenly the style is applied!
r
could you paste your code?
j
I copy/pasted the code from the example! I will try to minimize it.
Ok, I got it!: I have created a second root container (somewhere in the documentation it is mentioned that it is possible). And of course I added the style to the second root -> where it is not working without an event. Placing the style in the first root works just fine. --> I will create a ticket
r
I've answered all the other issues but this one is hard 🙂
🙏 1
Unfortunately
Style
objects are currently not designed to work with multiple roots.
j
It's no problem for me. Maybe update the documentation to avoid confusion? Maybe add a small note that multiple roots are not fully supported at the moment?
r
I will. It would require quite a lot of work and multiple roots are really rare cases.
👍 1
🙏 1
Thanks for your PR, but unfortunately I can't merge GitHub pull requests to the GitBook documentation. It tends to loose formatting in an unpredictable way.
So I've just fixed the typo in the guide.
If you would like to contribute and fix some more pages in the guide I can give you editor access on GitBook.