-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Popover: fix and improve opening animation, use framer motion (#43186)
* Popover: use motion for animation, adjust animation origin * Add more text to popover in storybook examples * Move positionToPlacement to utils file * Do not animate when expanded * Add translation and opacity to the animation * Memoize the computation of motion animation props * Add support for reduced motion * Force popover position in "AllPlacements" storybook example for more clarity around poopover positioning * Wrap component unit tests inside a "Component" describe call * Update snapshot * Add positionToPlacement and placementToMotionAnimationProps unit tests * CHANGELOG * More accessible comment * Cleanup comment
- Loading branch information
Showing
6 changed files
with
285 additions
and
102 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.