Open M0ebiu5 opened 7 years ago
Try the following: Add a class to a Button, e.g. blue
- then edit the Site node (there is a CSS editor in the options) and put in there .blue { color: blue; }
- now the Label of the button should be blue.
All this needs a lot of documentation, because sometimes it's necessary to know which elements reside inside a widget to get useful results.
Also an important thing: you can't define CSS in a template node. Polymer scopes this, so if you define CSS in a template it will only affect things inside that template. That's the reason for the CSS option in the Site node.
Let me know if this helps :)
PS.: the class attribute is not tested everywhere, I know it works with the Button and i know it does not work with Groups, pls give me some time, will fix and test it for all elements on next saturday or sunday. :)
Thanks for the explanation! My use case for the class / css feature is mostly the html widget to style external html.
I tried the following: Entered a class name in the class attribute field. Defined the class in the template node.
But it does not work. Class name also does not show up in page source... Did i do something wrong, or is the this feature not yet functional?