package.src.vaadin-menu-bar-button.js Maven / Gradle / Ivy
/**
* @license
* Copyright (c) 2019 - 2022 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { Button } from '@vaadin/button/src/vaadin-button.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
registerStyles(
'vaadin-menu-bar-button',
css`
[part='label'] ::slotted(vaadin-context-menu-item) {
position: relative;
z-index: 1;
}
`,
{ moduleId: 'vaadin-menu-bar-button-styles' },
);
/**
* An element used internally by ``. Not intended to be used separately.
*
* @extends Button
* @private
*/
class MenuBarButton extends Button {
static get is() {
return 'vaadin-menu-bar-button';
}
}
customElements.define(MenuBarButton.is, MenuBarButton);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy