-
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.
* feat(src/modal): use display: none when modal is hidden to avoid showing in some site layout based on root css, previous implementation might display block layout when hidden. This is addressed by using display: none when hidden and adding transition-behavior, @starting-styles to transition display property to keep the animation looks like original implementation On some old browsers, the transition animation might not work. Signed-off-by: James Chien <james@numbersprotocol.io> * feat: cleanup injected modal automatically when capture-eye is removed from DOM or click on close button Signed-off-by: James Chien <james@numbersprotocol.io> * test(src/test): fix tests Signed-off-by: James Chien <james@numbersprotocol.io> * fix(src/modal/modal-manager.ts): avoid creating modal when not necessary Signed-off-by: James Chien <james@numbersprotocol.io> --------- Signed-off-by: James Chien <james@numbersprotocol.io>
- Loading branch information
Showing
5 changed files
with
99 additions
and
98 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