Skip to content

Commit

Permalink
tab bar derp
Browse files Browse the repository at this point in the history
  • Loading branch information
snootched committed Oct 20, 2024
1 parent 3b9656e commit fbbbb8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export default class EditorForm extends LitElement {
const visibleTabs = tabs.filter(tab => this._evaluateCondition(tab.visibilityCondition || "true"));

return html`
<mwc-tabs @MDCTabBar:activated=${this._handleTabActivated}>
<mwc-tab-bar @MDCTabBar:activated=${this._handleTabActivated}>
${visibleTabs.map((tab, index) => html`
<mwc-tab label="${tab.label}" ?selected=${this._selectedTab === index}></mwc-tab>
`)}
</mwc-tabs>
</mwc-tab-bar>
<div class="tab-content">
${visibleTabs.map((tab, index) => html`
<div class="tab-panel" ?hidden=${this._selectedTab !== index}>
Expand Down Expand Up @@ -261,7 +261,7 @@ export default class EditorForm extends LitElement {
}
/* Styles for tabs */
mwc-tabs {
mwc-tab-bar {
border-bottom: 1px solid var(--divider-color);
}
.tab-content {
Expand Down

0 comments on commit fbbbb8c

Please sign in to comment.