Skip to content

Commit e8c7a69

Browse files
author
yinonov
committed
microsoft/fast/pull/6580#issuecomment-1367536502
1 parent 5581e08 commit e8c7a69

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libs/components/src/lib/tabs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The vwc-tabs accepts [vwc-tab](../../components/tab) and `vwc-tab-panel` element
1010
```
1111

1212
```html preview full
13-
<vwc-tabs>
13+
<vwc-tabs activeid="Appetizers">
1414
<vwc-tab label="Appetizers" id="apps"></vwc-tab>
1515
<vwc-tab label="Entrees" id="entrees"></vwc-tab>
1616
<vwc-tab label="Desserts" id="desserts"></vwc-tab>
@@ -52,7 +52,7 @@ Add a `orientation` attribute to control the orientation.
5252
- Default: `'horizontal'`
5353

5454
```html preview full
55-
<vwc-tabs activeid="entrees" orientation="vertical">
55+
<vwc-tabs activeid="Entrees" orientation="vertical">
5656
<vwc-tab label="Appetizers" id="apps"></vwc-tab>
5757
<vwc-tab label="Entrees" id="entrees"></vwc-tab>
5858
<vwc-tab label="Desserts" id="desserts"></vwc-tab>

libs/components/src/lib/tabs/tabs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { observable } from '@microsoft/fast-element';
22
import { Tabs as FoundationTabs } from '@microsoft/fast-foundation';
33

4-
const TABS_ACTIVE_INDICATOR_INLINE_SIZE = "--_tabs-active-indicator-inline-size";
4+
const TABS_ACTIVE_INDICATOR_INLINE_SIZE = '--_tabs-active-indicator-inline-size';
55

66
/**
77
* Base class for tabs
@@ -14,7 +14,7 @@ export class Tabs extends FoundationTabs {
1414
override orientationChanged(): void {
1515
super.orientationChanged();
1616
this.patchIndicatorStyleTransition();
17-
if (this.orientation === "vertical") {
17+
if (this.orientation === 'vertical') {
1818
this.activeIndicatorRef?.style.removeProperty(TABS_ACTIVE_INDICATOR_INLINE_SIZE);
1919
}
2020
}
@@ -39,6 +39,6 @@ export class Tabs extends FoundationTabs {
3939
const width = this.activetab?.getClientRects()[0]?.width;
4040
if (!width) return;
4141

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+
}
4444
}

0 commit comments

Comments
 (0)