jb-modal 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
modal web component with features:
|
|
3
3
|
|
|
4
4
|
- customizable content
|
|
5
|
+
- support typescript
|
|
5
6
|
- auto close on background click
|
|
6
|
-
- add custom route history in browser so back button can close modal
|
|
7
|
+
- you can add custom route history in browser so back button can close modal and refresh (when modal is open) is open modal again
|
|
7
8
|
|
|
8
9
|
## install
|
|
9
10
|
|
|
@@ -24,7 +25,8 @@ document.querySelector('jb-modal').config.autoCloseOnBackgroundClick = true;
|
|
|
24
25
|
## customize modal look
|
|
25
26
|
|
|
26
27
|
you can customize modal look by following css properties
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
--jb-modal-
|
|
30
|
-
--jb-modal-border-radius
|
|
28
|
+
| css variable name | description |
|
|
29
|
+
| ------------- | ------------- |
|
|
30
|
+
| --jb-modal-bg-color | modal background color default is black `#fff` |
|
|
31
|
+
| --jb-modal-border-radius | modal border-radius default `24px` |
|
|
32
|
+
| --jb-modal-border-radius-mobile | modal border-radius on mobile default is `24px 24px 0 0` |
|