Skip to content

Commit

Permalink
fix(modal): leave animation transitions modal completely out of viewp…
Browse files Browse the repository at this point in the history
…ort on ipad (#20702)

fixes #20697
  • Loading branch information
liamdebeasi committed Mar 6, 2020
1 parent b6c2a77 commit 22d5256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/components/modal/animations/ios.enter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const iosEnterAnimation = (
const wrapperAnimation = createAnimation()
.addElement(baseEl.querySelector('.modal-wrapper')!)
.beforeStyles({ 'opacity': 1 })
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
.fromTo('transform', 'translateY(100vh)', 'translateY(0vh)');

const baseAnimation = createAnimation()
.addElement(baseEl)
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/modal/animations/ios.leave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const iosLeaveAnimation = (
const wrapperAnimation = createAnimation()
.addElement(baseEl.querySelector('.modal-wrapper')!)
.beforeStyles({ 'opacity': 1 })
.fromTo('transform', 'translateY(0%)', 'translateY(100%)');
.fromTo('transform', 'translateY(0vh)', 'translateY(100vh)');

const baseAnimation = createAnimation()
.addElement(baseEl)
Expand Down

0 comments on commit 22d5256

Please sign in to comment.