Repository navigation
Commit 8d214c4
feat: Implement HasStyle in LitTemplate so you can add class names to the root element (#10903)
Makes it possible to use addClassName("hello") in the constructor. Class for the custom element cannot be added in the template.
Co-authored-by: Mikhail Shabarov <mikhail@vaadin.com>1 parent a0a4fa7 commit 8d214c4
2 files changed
Lines changed: 11 additions & 1 deletion
File tree
- flow-lit-template/src
- main/java/com/vaadin/flow/component/littemplate
- test/java/com/vaadin/flow/component/littemplate
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
0 commit comments