docs: add Dialog slide animation example (#6187) (CP: v25.3) - #6238
Merged
Merged
Conversation
## 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.