Skip to content

Commit a1fea7d

Browse files
committed
pat carousel: Import styles for slick carousel.
1 parent cb653bf commit a1fea7d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
### Features
3737

38+
- pat carousel: Import styles for slick carousel.
3839
- pat auto suggest: Import styles for select2.
3940
- pat-tooltip: Import styles for tippy.
4041
- pat-modal: Import styles.

src/pat/carousel/carousel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export default Base.extend({
2828
trigger: ".pat-carousel",
2929

3030
async init() {
31+
if (window.__patternslib_import_styles) {
32+
import("slick-carousel/slick/slick.scss");
33+
}
3134
await import("slick-carousel");
3235
const ImagesLoaded = (await import("imagesloaded")).default;
3336

0 commit comments

Comments
 (0)