You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ To change this effect, you can use the `customClass` option (see below) but you
143
143
-`.nsm-dialog-animation-rtl`: the modal comes with a right-to-left effect
144
144
-`.nsm-dialog-animation-ttb`: the modal comes with a top-to-bottom effect
145
145
-`.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
147
147
148
148
149
149
## Parameters / Options
@@ -172,7 +172,7 @@ The below documentation will use the following pattern:
172
172
173
173
-`autostart` (boolean) | `false` ― _Define if the modal is showing up automatically when loaded or not._
174
174
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`!_
176
176
177
177
178
178
## Manipulate modals
@@ -339,9 +339,26 @@ export class AppComponent {
339
339
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).
340
340
341
341
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.
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`.
0 commit comments