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

refactor(module:modal): refactor modal component #2869

Merged
merged 9 commits into from
Feb 14, 2019

Conversation

hsuanxyz
Copy link
Member

@hsuanxyz hsuanxyz commented Feb 2, 2019

  • block scroll strategy
  • onPush
    Using OnPush for modal caused footer can not to detect changes. we can fix it when 8.x.

⚠️ Deprecated NZ_MODAL_CONFIG

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #2612, #2388, #2643, #2656

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Feb 2, 2019

Deploy preview for ng-zorro-master ready!

Built with commit 1ef10c3

https://deploy-preview-2869--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Feb 2, 2019

Codecov Report

Merging #2869 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2869      +/-   ##
=========================================
- Coverage   97.42%   97.4%   -0.02%     
=========================================
  Files         523     524       +1     
  Lines       10961   10962       +1     
  Branches      781     785       +4     
=========================================
- Hits        10679   10678       -1     
- Misses        181     183       +2     
  Partials      101     101
Impacted Files Coverage Δ
components/modal/nz-modal-config.ts 100% <ø> (ø) ⬆️
components/core/util/is-promise.ts 100% <100%> (ø)
components/modal/nz-modal.component.ts 99.5% <100%> (+0.46%) ⬆️
components/drawer/nz-drawer.component.ts 100% <100%> (ø) ⬆️
...mponents/carousel/nz-carousel-content.directive.ts 97.05% <0%> (-2.95%) ⬇️
components/carousel/nz-carousel.component.ts 93.22% <0%> (-1.36%) ⬇️
components/cascader/nz-cascader.component.ts 99.22% <0%> (-0.25%) ⬇️
components/time-picker/nz-time-picker.component.ts 94.38% <0%> (-0.07%) ⬇️
...te-picker/lib/calendar/calendar-input.component.ts 96.77% <0%> (ø) ⬆️
...te-picker/lib/popups/date-range-popup.component.ts 96.66% <0%> (ø) ⬆️
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07f25d8...1ef10c3. Read the comment docs.

@hsuanxyz hsuanxyz changed the title [WIP]refactor(module:modal): refactor modal component refactor(module:modal): refactor modal component Feb 13, 2019
@@ -56,7 +56,7 @@

// https://github.com/angular/material2/issues/15051
body {
overflow-x: unset;
overflow-x: visible;
Copy link
Member Author

Choose a reason for hiding this comment

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

IE does not support unset

Copy link
Member

@vthinkxie vthinkxie left a comment

Choose a reason for hiding this comment

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

LGTM

@vthinkxie vthinkxie merged commit 7487a7e into NG-ZORRO:master Feb 14, 2019
@hsuanxyz hsuanxyz deleted the refactor/modal branch April 22, 2019 02:41
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
* refactor(module:modal): refactor block scroll strategy

close NG-ZORRO#2612

* docs(module:modal): update docs

* test(module:modal): update cases for scrollbar

* refactor(module:modal): use OnPush change detection

close NG-ZORRO#2643, close NG-ZORRO#2656

* fix(module:modal, drawer): IE/Edge SVG doesn't support `blur`/`focus` method

close NG-ZORRO#2388

* fix(module:modal): fix animations

* refactor(module:modal): switch to Default change detection

* docs: add temporary use case for IE

* fix: scrollblock style
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
* refactor(module:modal): refactor block scroll strategy

close NG-ZORRO#2612

* docs(module:modal): update docs

* test(module:modal): update cases for scrollbar

* refactor(module:modal): use OnPush change detection

close NG-ZORRO#2643, close NG-ZORRO#2656

* fix(module:modal, drawer): IE/Edge SVG doesn't support `blur`/`focus` method

close NG-ZORRO#2388

* fix(module:modal): fix animations

* refactor(module:modal): switch to Default change detection

* docs: add temporary use case for IE

* fix: scrollblock style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants