File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 44
44
<slot name="panel"></slot>
45
45
` ;
46
46
47
+ // HIDE
48
+ // ShadyCSS will rename classes as needed to ensure style scoping.
49
+ ShadyCSS . prepareTemplate ( template , 'howto-tabs' ) ;
50
+ // /HIDE
51
+
47
52
/**
48
53
* `HowtoTabs` is a container element for tabs and panels.
49
54
*
83
88
* exactly one tab is active.
84
89
*/
85
90
connectedCallback ( ) {
91
+ // HIDE
92
+ // Shim Shadow DOM styles. This needs to be run in connectedCallback
93
+ // because if you shim Custom Properties (CSS variables) the element
94
+ // will need access to its parent node.
95
+ ShadyCSS . styleElement ( this ) ;
96
+ // /HIDE
97
+
86
98
// The element needs to do some manual input event handling to allow
87
99
// switching with arrow keys and Home/End.
88
100
this . addEventListener ( 'keydown' , this . _onKeyDown ) ;
You can’t perform that action at this time.
0 commit comments