-
Notifications
You must be signed in to change notification settings - Fork 861
[Flyout system] Improve flyout animations #9025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Flyout system] Improve flyout animations #9025
Conversation
…ternal `onAnimationEnd` handler
…w down the animation slightly
…unt for the added `<div>` wrapper
… EuiOverlayMask support is added back
… that render EuiFlyout
| // of the animations into a tailspin. One option would be to flat-out _hide_ this | ||
| // mask. :shrug: | ||
| if (hasOverlayMask) { | ||
| }> = ({ children, hasOverlayMask, isPortalled }) => { |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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
isOpen prop for better opening and closing animations
💚 Build SucceededHistory
cc @tkajtoch |
💚 Build Succeeded
History
cc @tkajtoch |
acstll
left a comment
There was a problem hiding this 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!
Summary
Resolves #8896
This PR improves the existing opening animation and introduces a new closing animation when the new optional
isOpenprop 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
isOpenandonClosingprops 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
Please note that these changes do not affect managed flyouts since managed flyouts are not aware of the new
isOpenprop needed for the closing animation to work. This work is included in #9015.General checklist
@defaultif default values are missing) and playground toggles