diff --git a/src/webviews/apps/shared/components/menu/index.ts b/src/webviews/apps/shared/components/menu/index.ts index 73f97d6..36108b2 100644 --- a/src/webviews/apps/shared/components/menu/index.ts +++ b/src/webviews/apps/shared/components/menu/index.ts @@ -1,3 +1,4 @@ export * from './menu-list'; export * from './menu-item'; export * from './menu-label'; +export * from './menu-divider'; diff --git a/src/webviews/apps/shared/components/menu/menu-divider.ts b/src/webviews/apps/shared/components/menu/menu-divider.ts new file mode 100644 index 0000000..609170f --- /dev/null +++ b/src/webviews/apps/shared/components/menu/menu-divider.ts @@ -0,0 +1,18 @@ +import { css, customElement, FASTElement, html } from '@microsoft/fast-element'; +import { elementBase } from '../styles/base'; + +const template = html``; + +const styles = css` + ${elementBase} + + :host { + display: block; + height: 0; + margin: 0.6rem; + border-top: 0.1rem solid var(--vscode-menu-separatorBackground); + } +`; + +@customElement({ name: 'menu-divider', template: template, styles: styles }) +export class MenuDivider extends FASTElement {} diff --git a/src/webviews/apps/shared/components/menu/menu-item.ts b/src/webviews/apps/shared/components/menu/menu-item.ts index 9641ae8..4804f72 100644 --- a/src/webviews/apps/shared/components/menu/menu-item.ts +++ b/src/webviews/apps/shared/components/menu/menu-item.ts @@ -1,8 +1,8 @@ -import { attr, css, customElement, FASTElement, html } from '@microsoft/fast-element'; +import { attr, css, customElement, FASTElement, html, volatile } from '@microsoft/fast-element'; import { elementBase } from '../styles/base'; const template = html` -