fix(tabs): fields intended to be accessed from templates must be exported

PiperOrigin-RevId: 575262457
This commit is contained in:
Material Web Team 2023-10-20 10:49:30 -07:00 committed by Copybara-Service
parent da8d83d447
commit b7be1cbbb4

View File

@ -50,6 +50,8 @@ export class Tabs extends LitElement {
/**
* The currently selected tab, `null` only when there are no tab children.
*
* @export
*/
get activeTab() {
return this.tabs.find(tab => tab.active) ?? null;
@ -64,6 +66,8 @@ export class Tabs extends LitElement {
/**
* The index of the currently selected tab.
*
* @export
*/
get activeTabIndex() {
return this.tabs.findIndex(tab => tab.active);