Skip to content

Commit 901f09f

Browse files
committed
pat-tooltip: Import styles for tippy.
1 parent 2fe998e commit 901f09f

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-tooltip: Import styles for tippy.
3839
- pat-modal: Import styles.
3940
- pat datetime picker: Import styles.
4041
- pat date picker: Import styles for pikaday.

src/pat/tooltip/tooltip.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export default Base.extend({
5151
async init($el, opts) {
5252
const el = this.el;
5353

54+
if (window.__patternslib_import_styles) {
55+
import("tippy.js/dist/tippy.css");
56+
}
5457
const Tippy = (await import("tippy.js")).default;
5558

5659
this.options = parser.parse(el, opts);

0 commit comments

Comments
 (0)