combo-boxpackage.theme.material.vaadin-combo-box-overlay-styles.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
import '@vaadin/vaadin-material-styles/color.js';
import { loader } from '@vaadin/vaadin-material-styles/mixins/loader.js';
import { menuOverlay } from '@vaadin/vaadin-material-styles/mixins/menu-overlay.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const comboBoxOverlay = css`
[part='overlay'] {
position: relative;
overflow: visible;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
[part='content'] {
padding: 0;
}
`;
const comboBoxLoader = css`
[part~='loader'] {
position: absolute;
z-index: 1;
top: -2px;
left: 0;
right: 0;
}
`;
registerStyles(
'vaadin-combo-box-overlay',
[
menuOverlay,
comboBoxOverlay,
loader,
comboBoxLoader,
css`
:host {
--_vaadin-combo-box-items-container-border-width: 8px 0;
--_vaadin-combo-box-items-container-border-style: solid;
}
`,
],
{ moduleId: 'material-combo-box-overlay' },
);
export { comboBoxLoader, comboBoxOverlay };