Skip to content
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

feat(modal): update iOS design, add swipe gesture #19428

Merged
merged 50 commits into from Dec 10, 2019
Merged

Conversation

manucorporat
Copy link
Contributor

@manucorporat manucorporat commented Sep 23, 2019

Dev build: 5.0.0-dev.201912021616.e60f230

needs review: https://github.com/ionic-team/ionic/pull/19428/files#diff-24fcc947660e79d1b2f094ec1b7dc3f5. not sure I like the way I implemented this. Basically I need to destroy the entering and leaving animations, otherwise the two conflict when running the leaving animation. --Liam

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: #18660

What is the new behavior?

  • Added card style modal presentation
  • Added swipe to close gesture

Does this introduce a breaking change?

  • Yes
  • No

Other information

Copy link
Member

@liamdebeasi liamdebeasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looking much better! A few notes:

  1. I recall us talking about moving the animation fixes to a separate PR. Can we still do that? This PR has about 1,500 lines of changes, so debugging is pretty difficult right now.
  2. Gesture based animations in CSS Animations mode (Safari and iOS) still flickers (swipe to go back, swipe to open menu, etc)
  3. Cannot open multiple menus one after the other (iOS mode CSS Animations and Web Animations)
  4. Modal presentation animation flickers
  5. Alert enter animation on iOS is not correct (it just appears instead of fading/scaling in)

Also, I'd recommend pulling in the latest master as it has fixes for a few other bugs I am seeing. Let me know when you do that and I can do some more testing.

@liamdebeasi
Copy link
Member

liamdebeasi commented Nov 21, 2019

I am removing code from this PR that is not directly related to the new modal functionality.

Animation interface updates PR: #19964

Hide Caret changes branch: https://github.com/ionic-team/ionic/tree/hide-caret
Non-modal Component CSS changes for backdrop/enter/leave animations branch: https://github.com/ionic-team/ionic/tree/manu-component-animation-changes

@liamdebeasi liamdebeasi changed the title New modal swipe feat(modal): update iOS design, add swipe gesture Nov 21, 2019
Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some small comment changes, UI & API looks great! Looking at screenshot now


// onstart(0.5) 0.5 -> 1 onFinish(1)
// onstart(0.5) 0.5 -> 0 onFinish(0)
// onstart(false) START 0->1 END onFInish(true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// onstart(false) START 0->1 END onFInish(true)
// onstart(false) START 0->1 END onFinish(true)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manucorporat do you still want these comments in here, or can I remove then?

// onstart(false) START 0->1 END onFInish(true)
// onstart(true) END 1->0 START onFinish(false)

// onstart(false) START 0->1 END onFInish(true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// onstart(false) START 0->1 END onFInish(true)
// onstart(false) START 0->1 END onFinish(true)

@liamdebeasi liamdebeasi merged commit b3b3312 into master Dec 10, 2019
@liamdebeasi liamdebeasi deleted the new-modal-swipe branch December 10, 2019 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants