From 4a80561453e206f339e207e4ce6fca789613493d Mon Sep 17 00:00:00 2001 From: kamalrohra Date: Fri, 6 Oct 2023 00:39:02 +0530 Subject: [PATCH 1/2] bug: unmatched div tag in menu-item.template.ts --- .../src/menu-item/menu-item.template.ts | 126 +++++++++--------- 1 file changed, 65 insertions(+), 61 deletions(-) diff --git a/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts b/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts index e6794376700..d729ca3df0d 100644 --- a/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts +++ b/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts @@ -21,72 +21,76 @@ export function menuItemTemplate( options: MenuItemOptions = {} ): ElementViewTemplate { return html` - `; } From ecebe1c4134828b84da06fe698c8ba4234c5e4fa Mon Sep 17 00:00:00 2001 From: kamalrohra Date: Sat, 7 Oct 2023 23:00:47 +0530 Subject: [PATCH 2/2] bug: removed the div tag --- .../src/menu-item/menu-item.template.ts | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts b/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts index d729ca3df0d..6cdf03d3bd2 100644 --- a/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts +++ b/packages/web-components/fast-foundation/src/menu-item/menu-item.template.ts @@ -31,32 +31,30 @@ export function menuItemTemplate( @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` -
- - - ${staticallyCompose(options.checkboxIndicator)} - - -
- ` - )} - ${when( - x => x.role === MenuItemRole.menuitemradio, - html` -
- - - ${staticallyCompose(options.radioIndicator)} - - -
- ` - )} -
+ ${when( + x => x.role === MenuItemRole.menuitemcheckbox, + html` +
+ + + ${staticallyCompose(options.checkboxIndicator)} + + +
+ ` + )} + ${when( + x => x.role === MenuItemRole.menuitemradio, + html` +
+ + + ${staticallyCompose(options.radioIndicator)} + + +
+ ` + )} ${startSlotTemplate(options)}