Skip to content

Commit 3a79ae5

Browse files
authored
Merge pull request maximelafarie#122 from biig-io/fix/fix-regression-add-new-version
fix: Fix regression, improve readme, push new version
2 parents 2b67831 + 35e016f commit 3a79ae5

File tree

5 files changed

+23
-6
lines changed

5 files changed

+23
-6
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ To change this effect, you can use the `customClass` option (see below) but you
143143
- `.nsm-dialog-animation-rtl`: the modal comes with a right-to-left effect
144144
- `.nsm-dialog-animation-ttb`: the modal comes with a top-to-bottom effect
145145
- `.nsm-dialog-animation-btt`: the modal comes with a bottom-to-top effect
146-
- `.nsm-centered`: the modal is centered vertical
146+
- `.nsm-centered`: the modal is centered vertically
147147

148148

149149
## Parameters / Options
@@ -172,7 +172,7 @@ The below documentation will use the following pattern:
172172

173173
- `autostart` (boolean) | `false`_Define if the modal is showing up automatically when loaded or not._
174174

175-
- `target` (string) | `undefined`_Displays the modal at the location of the target element
175+
- `target` (string) | `undefined`_Displays the modal relatively to the targeted element. ⚠️ Only for `NgxSmartModal >= 7.0.0`!_
176176

177177

178178
## Manipulate modals
@@ -339,9 +339,26 @@ export class AppComponent {
339339
To get more details about the available methods, their parameters and what they return, please take a look at **[ngx-smart-modal.service.ts](https://github.com/biig-io/ngx-smart-modal/blob/master/src/ngx-smart-modal/src/services/ngx-smart-modal.service.ts)** file (well documented).
340340

341341

342+
## Precautions when upgrading to a newer version
343+
### Upgrade from <=5.x.x to 6.x.x
344+
Make sure that you imported `ngx-smart-modal.scss` or `ngx-smart-modal.css` in a global style file (e.g. `styles.scss` or `styles.css` in classic Angular projects or any other scss/css file it imports).
345+
346+
### Upgrade from <=6.x.x to >=7.x.x
347+
Nothing should break unless if you added custom style to the modal content. In this case, it may break your existing style. To fix it, you simply have to add the `.nsm-body` selector after the `.nsm-dialog` selector because from now, the modal content is wrapped in a `.nsm-body` block.
348+
349+
342350
## Author and Maintainer
343351
* [Maxime LAFARIE](https://github.com/maximelafarie)
344352

353+
## Contributors
354+
* [Mark LUCAS](https://github.com/marco10024)
355+
* [gaetanmarsault](https://github.com/gaetanmarsault)
356+
* [neromaycry](https://github.com/neromaycry)
357+
* [Kraus Vincent](https://github.com/khylias)
358+
* [Andreas Bissinger](https://github.com/be-ndee)
359+
* [Yosbel Marín](https://github.com/yosbelms)
360+
* [Thomas Chang](https://github.com/thomascsd)
361+
345362

346363
## Issues
347364
If you wish to submit an issue, please use the available template to facilitate reading and comprehension of all issues encountered. You can find this template in `./github/issue_template.md`.

src/ngx-smart-modal/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ngx-smart-modal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-smart-modal",
3-
"version": "6.0.4",
3+
"version": "7.0.0",
44
"description": "Smart modal handler to manage modals and data everywhere in Angular apps.",
55
"main": "./bundles/ngx-smart-modal.umd.js",
66
"module": "./esm5/ngx-smart-modal.js",

src/ngx-smart-modal/src/components/ngx-smart-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class NgxSmartModalComponent implements OnInit, OnDestroy {
4646
@Input() public visible: boolean = false;
4747
@Input() public backdrop: boolean = true;
4848
@Input() public force: boolean = true;
49-
@Input() public hideDelay: number = 200;
49+
@Input() public hideDelay: number = 500;
5050
@Input() public autostart: boolean = false;
5151
@Input() public target: any;
5252

src/ngx-smart-modal/src/ngx-smart-modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $dialog-position-top: 1.75rem !default;
66

77
// Transition time
88
// !! The same as the hideDelay variable defined in ngx-smart-modal.component.ts
9-
$transition-duration: 200ms !default;
9+
$transition-duration: 500ms !default;
1010

1111
// Transition effect
1212
// linear | ease | ease-in | ease-out | ease-in-out

0 commit comments

Comments
 (0)