Skip to content

docs: add Dialog slide animation example (#6187) (CP: v25.3) - #6238

Merged
sissbruecker merged 1 commit into
v25.3from
cherry-pick-6187-to-v25.3-1790876046019
Oct 1, 2026
Merged

sissbruecker merged 1 commit into
v25.3from
cherry-pick-6187-to-v25.3-1790876046019

Conversation

@vaadin-bot

Copy link
Copy Markdown
Contributor

No description provided.

## 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:
- **Aura / base styles:** a short CSS example for dialogs with the
`slide-in` class name. It sets `--vaadin-overlay-translate-closed: 0
2rem` and `--vaadin-overlay-scale-closed: 1`, so the dialog slides
instead of scaling. The theme still controls the timing.
- **Lumo:** Lumo has its own Dialog animation, so the properties above
do nothing there. The example replaces the `opening` and `closing`
overlay 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.

---------

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>
@sissbruecker
sissbruecker merged commit 58f30c2 into v25.3 Oct 1, 2026
8 of 9 checks passed
@sissbruecker
sissbruecker deleted the cherry-pick-6187-to-v25.3-1790876046019 branch October 1, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants