docs: add Dialog slide animation example - #6187
Conversation
Add short examples for compact Combo Box items, per-instance Progress Bar value color, user-resizable Text Area, Dialog slide-in animation, printing part of a page, and Enter and Escape handling in dialogs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preview DeploymentThis PR has been deployed for preview. URL: https://docs-preview-pr-6187.fly.dev Changed pagesAdded content is highlighted in green; removed content is marked in red on each page.
Built from 9287a15 |
|
@totally-not-ai Extract the dialogs / popovers guide and browser access changes into a separate PR. |
They're now proposed in #6236. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@sissbruecker Done. The dialog keyboard shortcuts section (Add Dialogs & Popovers guide) and the selective printing snippet (Browser Access) are now in their own PR, #6236, and I removed them from this one. |
|
Drop the combo box progress bar and text area examples. These are either too arbitrary, promote bad practices or have broken UX. For the dialog animation:
|
… animation - Remove the Combo Box item spacing, Progress Bar color, and Text Area resize examples - Dialog slide animation: slide a short distance instead of across the viewport, keep the theme's timing in Aura, and match Lumo's built-in durations, delays, easing, and fade Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@sissbruecker Thanks for the review. I removed the Combo Box, Progress Bar, and Text Area examples, so this PR now only contains the Dialog animation. Changes to it:
|
Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
This adds an example to the Dialog styling page. It shows how to make a dialog slide up a little and fade in when it opens, then slide down and fade out when it closes.
What changed
Docs only. No code or behavior changes.
In
articles/components/dialog/styling.adoc, after the overlay animation properties:slide-inclass name. It sets--vaadin-overlay-translate-closed: 0 2remand--vaadin-overlay-scale-closed: 1, so the dialog slides instead of scaling. The theme still controls the timing.openingandclosingoverlay animations with keyframes that add a slide to the usual fade. It keeps Lumo's built-in durations, delays, and easing, so the dialog still matches the backdrop fade and is removed at the right time.