Details Styling
Style Variants
The following style variants are supported by Details:
| Variant | Description | Supported by |
|---|---|---|
| Makes the component’s boundaries visible | Aura, Lumo |
| Removes the padding from the content area | Aura |
| Used for compact UIs | Lumo |
| Places the toggle icon after the summary contents | Aura, Lumo |
Filled
The filled variant makes the component’s boundaries visible, which helps tie its content together visually and distinguishes it from the surrounding UI.
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.
| Property | Supported by |
|---|---|
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| 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.
|
Important
|
Not for Shadow DOM
These selectors should be used in styles.css or another stylesheet loaded with the @StyleSheet annotation or the @import CSS rule.
They do not work in the shadow DOM of Vaadin components, such as in stylesheets in the components sub-folder or loaded with the @CssImport annotation ’s themeFor property.
|
- Root element
-
vaadin-details
Summary
- Panel header (a.k.a. summary)
-
vaadin-details-summary - Toggle
-
vaadin-details-summary::part(toggle) - Toggle icon
-
vaadin-details-summary::part(toggle)::before - Summary content wrapper
-
vaadin-details-summary::part(content) - Opened details summary
-
vaadin-details-summary[opened] - Disabled details summary
-
vaadin-details-summary[disabled]