<@UFT11FKSP> I'm trying to understand the style {}...
# kvision
h
@Robert Jaros I'm trying to understand the style {} block behaviour. It wasn't hard to figure out, but seemed surprising
If I use style("my-class-name"), then the style block is created for an element selector ("my-class-name") rather than ".my-class-name"
Copy code
val fullClassName = "${if (isGenerated) "." else ""}$className$pseudoElementName$pseudoClassName"
I saw this^ in Style.getStyleDeclaration() and so it seems intentional
but it seems a little counter-intuitive that the user has to know to provide the "." prefix when style's first argument is called
className
r
It was bad designed 🙂
😊 1
I had to make some temporary fixes to make it work without breaking backward compatibility.
I plan to redesign this for KVision 5
h
Great stuff. Thanks
Planning to write an Upload component for Onsen UI soon
So I may try to contribute that back to kvision
👍 1