Docs

Documentation versions (currently viewingVaadin 25 (prerelease))

Dialog Styling

Styling API reference for the Dialog component.

Style Variants

The following variants are supported:

Variant Description Supported by

no-padding

Used to remove the content area’s built-in padding

Aura, Lumo

Source code
DialogNoPadding.java
dialog-no-padding.tsx
dialog-no-padding.ts

Style Properties

The following style properties can be used in CSS stylesheets to customize the appearance of this component.

To apply values to these properties globally in your application UI, place them in a CSS block using the html {…​} selector. See Component Style Properties for more information on style properties.

Feature Property Supported by

Background

--vaadin-dialog-background

Aura

Backdrop background

--vaadin-overlay-backdrop-background

Aura

Border color

--vaadin-dialog-border-color

Aura

Border width

--vaadin-dialog-border-width

Aura

Border radius

--vaadin-dialog-border-radius

Aura

Box shadow

--vaadin-dialog-shadow

Aura

Max width

--vaadin-dialog-max-width

Aura

Min width

--vaadin-dialog-min-width

Aura

Padding

--vaadin-dialog-padding

Aura

Title color

--vaadin-dialog-title-color

Aura

Title font size

--vaadin-dialog-title-font-size

Aura

Title font weight

--vaadin-dialog-title-font-weight

Aura

Title line height

--vaadin-dialog-title-font-weight

Aura

CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.

Root element

vaadin-dialog

States

Non-modal

vaadin-dialog[modeless]

Dialog with header

vaadin-dialog[has-header]

Dialog with footer

vaadin-dialog[has-footer]

Resizable

vaadin-dialog[resizable]

Draggable

vaadin-dialog[draggable]

Parts

Modality curtain (backdrop)

vaadin-dialog::part(backdrop)

Dialog surface

vaadin-dialog::part(overlay)

Header

vaadin-dialog::part(header)

Title wrapper

vaadin-dialog::part(title)

Title element

vaadin-dialog > [slot="title"]

Header custom content wrapper

vaadin-dialog::part(header-content)

Content area

vaadin-dialog::part(content)

Footer

vaadin-dialog::part(footer)