Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
scomea committed Jan 16, 2024
1 parent 9af1b25 commit 3c25c84
Show file tree
Hide file tree
Showing 2 changed files with 352 additions and 147 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ElementViewTemplate, html, slotted } from "@microsoft/fast-element";
import { ElementViewTemplate, html, ref, slotted } from "@microsoft/fast-element";
import { endSlotTemplate, startSlotTemplate } from "../patterns/index.js";
import type { FASTTabs } from "./tabs.js";
import type { TabsOptions } from "./tabs.options.js";
Expand All @@ -12,7 +12,7 @@ export function tabsTemplate<T extends FASTTabs>(
): ElementViewTemplate<T> {
return html<T>`
${startSlotTemplate(options)}
<div class="tablist" part="tablist" role="tablist">
<div class="tablist" part="tablist" role="tablist" ${ref("tabList")}>
<slot name="tab" ${slotted("tabs")}></slot>
</div>
${endSlotTemplate(options)}
Expand Down
Loading

0 comments on commit 3c25c84

Please sign in to comment.