Commit 4df54bf
committed
import custom <style> tag to Shadow DOM
this small but powerful addition allows a user of the element to define
a custom <style> element inside of the custom element, which is then
moved in to the Shadow DOM. The <style> tag can define arbitrary CSS of
course, but the main (and supported) way of using it is to override CSS
variables to customize the styling of the element.
Example:
<ge-autocomplete …>
<style>
:host {
--input-bg: salmon;
--loading-color: red;
}
</style>
</ge-autocomplete>1 parent 581c95f commit 4df54bf
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
136 | 149 | | |
137 | 150 | | |
138 | 151 | | |
| |||
0 commit comments