Skip to content

Commit 7914548

Browse files
author
Helen Le
committed
chore(tabs): update class modifier
1 parent 171297c commit 7914548

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/tabs/src/Tabs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class Tabs extends SizedMixin(Focusable, { noDefaultSize: true }) {
161161
private slotEl!: HTMLSlotElement;
162162

163163
@query('#list')
164-
private tabList!: HTMLDivElement;
164+
protected tabList!: HTMLDivElement;
165165

166166
@property({ reflect: true })
167167
selected = '';
@@ -178,7 +178,7 @@ export class Tabs extends SizedMixin(Focusable, { noDefaultSize: true }) {
178178
this.rovingTabindexController.clearElementCache();
179179
}
180180

181-
private get tabs(): Tab[] {
181+
protected get tabs(): Tab[] {
182182
return this._tabs;
183183
}
184184

@@ -300,7 +300,7 @@ export class Tabs extends SizedMixin(Focusable, { noDefaultSize: true }) {
300300
return complete;
301301
}
302302

303-
private getNecessaryAutoScroll(index: number): number {
303+
protected getNecessaryAutoScroll(index: number): number {
304304
const selectedTab = this.tabs[index];
305305
const selectionEnd = selectedTab.offsetLeft + selectedTab.offsetWidth;
306306
const viewportEnd = this.tabList.scrollLeft + this.tabList.offsetWidth;

packages/tabs/src/TabsOverflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class TabsOverflow extends SizedMixin(SpectrumElement) {
101101
this._updateScrollState();
102102
}
103103

104-
private _updateScrollState(): void {
104+
protected _updateScrollState(): void {
105105
const { scrollContent, overflowState } = this;
106106

107107
if (scrollContent) {

0 commit comments

Comments
 (0)