We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1fea7d commit ab1af51Copy full SHA for ab1af51
CHANGES.md
@@ -35,6 +35,7 @@
35
36
### Features
37
38
+- pat gallery: Import styles for photoswipe.
39
- pat carousel: Import styles for slick carousel.
40
- pat auto suggest: Import styles for select2.
41
- pat-tooltip: Import styles for tippy.
src/pat/gallery/gallery.js
@@ -22,6 +22,10 @@ export default Base.extend({
22
origBodyOverflow: "auto",
23
24
async init($el, opts) {
25
+ if (window.__patternslib_import_styles) {
26
+ import("photoswipe/dist/photoswipe.css");
27
+ import("photoswipe/dist/default-skin/default-skin.css");
28
+ }
29
const PhotoSwipe = (await import("photoswipe")).default;
30
const PhotoSwipeUI = (await import("photoswipe/dist/photoswipe-ui-default")).default; // prettier-ignore
31
0 commit comments