Skip to content

Conversation

@tkajtoch
Copy link
Member

@tkajtoch tkajtoch commented Sep 16, 2025

Summary

Resolves #8896

This PR improves the existing opening animation and introduces a new closing animation when the new optional isOpen prop is used.

Why are we making this change?

This work is needed for the flyout system initiative and is a prerequisite to the managed flyout changes in this PR: #9015

Impact to users

The added isOpen and onClosing props are optional, and the changes should have no impact to end users. There's a small snapshot difference because of the new class names, but it should be very easy to sort out by consumers who use snapshot tests.

QA

  • Confirm the CI is passing
  • Confirm the EuiFlyout story is animating opening and closing of the flyout when clicking the toggle button

Please note that these changes do not affect managed flyouts since managed flyouts are not aware of the new isOpen prop needed for the closing animation to work. This work is included in #9015.

General checklist

  • Browser QA
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
  • Docs site QA
    • Props have proper autodocs (using @default if default values are missing) and playground toggles
  • Code quality checklist

@tkajtoch tkajtoch self-assigned this Sep 16, 2025
@tkajtoch tkajtoch requested a review from a team as a code owner September 16, 2025 12:10
@tkajtoch tkajtoch added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Sep 16, 2025
// of the animations into a tailspin. One option would be to flat-out _hide_ this
// mask. :shrug:
if (hasOverlayMask) {
}> = ({ children, hasOverlayMask, isPortalled }) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overlay mask is temporarily removed for easier implementation of other features. We have a separate issue to add it back: #8989

id="id"
role="dialog"
style="inline-size: 240px;"
<div>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and a couple other snapshots differ because of the EuiOverlayMask change I added a comment about below. We'll revert these back when EuiOverlayMask is fixed here: #8989

@tkajtoch tkajtoch changed the title [Flyout system] Add isOpen prop for better opening and closing animations [Flyout system] Improve flyout animations Sep 16, 2025
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @tkajtoch

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @tkajtoch

Copy link
Contributor

@acstll acstll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Thanks for creating separate PRs!

@tkajtoch tkajtoch merged commit 2c31f4f into elastic:feat/flyout-system Sep 16, 2025
4 checks passed
acstll pushed a commit to acstll/eui that referenced this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants