diff --git a/packages/carbon-web-components/src/components/menu/menu-item-divider.ts b/packages/carbon-web-components/src/components/menu/menu-item-divider.ts index 8464307bbd1..48acd0ae672 100644 --- a/packages/carbon-web-components/src/components/menu/menu-item-divider.ts +++ b/packages/carbon-web-components/src/components/menu/menu-item-divider.ts @@ -12,8 +12,6 @@ import { property } from 'lit/decorators.js'; import { prefix } from '../../globals/settings'; import styles from './menu-item.scss?lit'; import { carbonElement as customElement } from '../../globals/decorators/carbon-element'; -import { classMap } from 'lit/directives/class-map.js'; - /** * Menu Item. * diff --git a/packages/carbon-web-components/src/components/menu/menu-item-group.ts b/packages/carbon-web-components/src/components/menu/menu-item-group.ts index 0879b7b266e..5b59549c34e 100644 --- a/packages/carbon-web-components/src/components/menu/menu-item-group.ts +++ b/packages/carbon-web-components/src/components/menu/menu-item-group.ts @@ -12,8 +12,6 @@ import { property } from 'lit/decorators.js'; import { prefix } from '../../globals/settings'; import styles from './menu-item.scss?lit'; import { carbonElement as customElement } from '../../globals/decorators/carbon-element'; -import { classMap } from 'lit/directives/class-map.js'; - /** * Menu Item. * diff --git a/packages/carbon-web-components/src/components/menu/menu-item-radio-group.ts b/packages/carbon-web-components/src/components/menu/menu-item-radio-group.ts index b9a1909bad1..0a36a078259 100644 --- a/packages/carbon-web-components/src/components/menu/menu-item-radio-group.ts +++ b/packages/carbon-web-components/src/components/menu/menu-item-radio-group.ts @@ -12,8 +12,8 @@ import { property } from 'lit/decorators.js'; import { prefix } from '../../globals/settings'; import styles from './menu-item.scss?lit'; import { carbonElement as customElement } from '../../globals/decorators/carbon-element'; -import { classMap } from 'lit/directives/class-map.js'; -import { EventHandler } from 'react'; +import Checkmark16 from '@carbon/icons/lib/checkmark/16'; +import { ChangeEventHandler, EventHandler } from 'react'; /** * Menu Item. @@ -42,11 +42,13 @@ class CDSmenuItemRadioGroup extends LitElement { /** * List of items in the radio group. */ + @property() itemToString?: (item: Array) => String; /** * Provide an optional function to be called when the selection state changes. */ - onChange?; + @property() + onChange?: ChangeEventHandler; _handleClick = (item, e) => { this.selectedItem = item; @@ -65,7 +67,7 @@ class CDSmenuItemRadioGroup extends LitElement { } = this; return html`
  • -