File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
libs/components/src/lib/tabs Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ The vwc-tabs accepts [vwc-tab](../../components/tab) and `vwc-tab-panel` element
10
10
```
11
11
12
12
``` html preview full
13
- <vwc-tabs >
13
+ <vwc-tabs activeid = " Appetizers " >
14
14
<vwc-tab label =" Appetizers" id =" apps" ></vwc-tab >
15
15
<vwc-tab label =" Entrees" id =" entrees" ></vwc-tab >
16
16
<vwc-tab label =" Desserts" id =" desserts" ></vwc-tab >
@@ -52,7 +52,7 @@ Add a `orientation` attribute to control the orientation.
52
52
- Default: ` 'horizontal' `
53
53
54
54
``` html preview full
55
- <vwc-tabs activeid =" entrees " orientation =" vertical" >
55
+ <vwc-tabs activeid =" Entrees " orientation =" vertical" >
56
56
<vwc-tab label =" Appetizers" id =" apps" ></vwc-tab >
57
57
<vwc-tab label =" Entrees" id =" entrees" ></vwc-tab >
58
58
<vwc-tab label =" Desserts" id =" desserts" ></vwc-tab >
Original file line number Diff line number Diff line change 1
1
import { observable } from '@microsoft/fast-element' ;
2
2
import { Tabs as FoundationTabs } from '@microsoft/fast-foundation' ;
3
3
4
- const TABS_ACTIVE_INDICATOR_INLINE_SIZE = " --_tabs-active-indicator-inline-size" ;
4
+ const TABS_ACTIVE_INDICATOR_INLINE_SIZE = ' --_tabs-active-indicator-inline-size' ;
5
5
6
6
/**
7
7
* Base class for tabs
@@ -14,7 +14,7 @@ export class Tabs extends FoundationTabs {
14
14
override orientationChanged ( ) : void {
15
15
super . orientationChanged ( ) ;
16
16
this . patchIndicatorStyleTransition ( ) ;
17
- if ( this . orientation === " vertical" ) {
17
+ if ( this . orientation === ' vertical' ) {
18
18
this . activeIndicatorRef ?. style . removeProperty ( TABS_ACTIVE_INDICATOR_INLINE_SIZE ) ;
19
19
}
20
20
}
@@ -39,6 +39,6 @@ export class Tabs extends FoundationTabs {
39
39
const width = this . activetab ?. getClientRects ( ) [ 0 ] ?. width ;
40
40
if ( ! width ) return ;
41
41
42
- this . activeIndicatorRef ?. style . setProperty ( TABS_ACTIVE_INDICATOR_INLINE_SIZE , `${ width } px` ) ;
43
- }
42
+ this . activeIndicatorRef ?. style . setProperty ( TABS_ACTIVE_INDICATOR_INLINE_SIZE , `${ width } px` ) ;
43
+ }
44
44
}
You can’t perform that action at this time.
0 commit comments