forked from Uniswap/widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tooltips in animated dialogs (Uniswap#432)
* fix: update popper on dialog animation finish * fix: reverted unecessary changes * fix: modal animation corners * fix: hardcoded test color * refactor: use animation theme variables * fix: memoize boundaries * fix: initial value for boundary context * fix: animation variable usage
- Loading branch information
Showing
6 changed files
with
137 additions
and
62 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
export enum AnimationSpeed { | ||
Fast = '0.125s', | ||
Medium = '0.25s', | ||
Slow = '0.5s', | ||
export enum TransitionDuration { | ||
Fast = 125, | ||
Medium = 250, | ||
Slow = 250, | ||
} | ||
|
||
export const AnimationSpeed = { | ||
Fast: `${TransitionDuration.Fast}ms`, | ||
Medium: `${TransitionDuration.Medium}ms`, | ||
Slow: `${TransitionDuration.Slow}ms`, | ||
} |