Skip to content

Commit

Permalink
Remove unmatched closing div
Browse files Browse the repository at this point in the history
  • Loading branch information
janechu committed Jun 14, 2024
1 parent e499c03 commit aa13031
Showing 1 changed file with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,30 @@ export function menuItemTemplate<T extends FASTMenuItem>(
@mouseover="${(x, c) => x.handleMouseOver(c.event as MouseEvent)}"
@mouseout="${(x, c) => x.handleMouseOut(c.event as MouseEvent)}"
>
${when(
x => x.role === MenuItemRole.menuitemcheckbox,
html<FASTMenuItem>`
<div part="input-container" class="input-container">
<span part="checkbox" class="checkbox">
<slot name="checkbox-indicator">
${staticallyCompose(options.checkboxIndicator)}
</slot>
</span>
</div>
`
)}
${when(
x => x.role === MenuItemRole.menuitemradio,
html<FASTMenuItem>`
<div part="input-container" class="input-container">
<span part="radio" class="radio">
<slot name="radio-indicator">
${staticallyCompose(options.radioIndicator)}
</slot>
</span>
</div>
`
)}
</div>
${when(
x => x.role === MenuItemRole.menuitemcheckbox,
html<FASTMenuItem>`
<div part="input-container" class="input-container">
<span part="checkbox" class="checkbox">
<slot name="checkbox-indicator">
${staticallyCompose(options.checkboxIndicator)}
</slot>
</span>
</div>
`
)}
${when(
x => x.role === MenuItemRole.menuitemradio,
html<FASTMenuItem>`
<div part="input-container" class="input-container">
<span part="radio" class="radio">
<slot name="radio-indicator">
${staticallyCompose(options.radioIndicator)}
</slot>
</span>
</div>
`
)}
${startSlotTemplate(options)}
<span class="content" part="content">
<slot></slot>
Expand Down

0 comments on commit aa13031

Please sign in to comment.