password-fieldpackage.theme.lumo.vaadin-password-field-button-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
/**
* @license
* Copyright (c) 2021 - 2024 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { button } from '@vaadin/button/theme/lumo/vaadin-button-styles.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const passwordFieldButton = css`
:host {
position: absolute;
right: 0;
top: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
min-width: auto;
background: transparent;
outline: none;
}
`;
registerStyles('vaadin-password-field-button', [button, passwordFieldButton], {
moduleId: 'lumo-password-field-button',
});