LoginOverlayElement
<vaadin-login-overlay> is a web component which renders a login form in an overlay and provides an additional brand part for application title and description.
<vaadin-login-overlay opened></vaadin-login-overlay>Styling
The following shadow DOM parts are available for styling:
| Part name | Description |
|---|---|
backdrop | Backdrop of the overlay |
overlay | The overlay container element |
content | The overlay content element |
card | Container for the brand and form wrapper |
brand | Container for application title and description |
description | The application description |
form-wrapper | The login form wrapper element |
form | The login form element |
form-title | Title of the login form |
error-message | Container for error message |
error-message-title | Container for error message title |
error-message-description | Container for error message description |
footer | Container for the footer element |
The following custom CSS properties are available for styling:
| Custom CSS property |
|---|
--vaadin-login-overlay-background |
--vaadin-login-overlay-border-color |
--vaadin-login-overlay-border-radius |
--vaadin-login-overlay-border-width |
--vaadin-login-overlay-brand-background |
--vaadin-login-overlay-brand-padding |
--vaadin-login-overlay-description-color |
--vaadin-login-overlay-description-font-size |
--vaadin-login-overlay-description-font-weight |
--vaadin-login-overlay-description-line-height |
--vaadin-login-overlay-shadow |
--vaadin-login-overlay-text-color |
--vaadin-login-overlay-title-color |
--vaadin-login-overlay-title-font-size |
--vaadin-login-overlay-title-font-weight |
--vaadin-login-overlay-title-line-height |
See Styling Components documentation.
Properties
Defines the application description
Sets the root heading level (aria-level) for the heading hierarchy. Default value: 1. Child headings automatically increment from this base level i.e. standalone login form renders its title as <h1>, whereas the form in the overlay uses <h2>, as the <h1> element is used by the overlay's own title.
If set, the user name field automatically receives focus when the component is attached to the document.
Whether to hide the forgot password button. The button is visible by default.