Style intro.js highlight helper layer & tooltips to go nice with WP

[MAILPOET-1446]
This commit is contained in:
Jan Jakeš
2018-08-04 19:17:28 +02:00
committed by pavel-mailpoet
parent 5621ab22bc
commit fe248ffde7
3 changed files with 31 additions and 0 deletions

View File

@@ -29,6 +29,18 @@ function Intro() {
skipLabel: 'Skip',
doneLabel: 'Done',
positionPrecedence: ['right', 'left', 'bottom', 'top'],
helperElementPadding: 12,
scrollToElement: false,
showStepNumbers: false,
tooltipPosition: 'auto',
});
intro.onafterchange(() => {
document.body.classList.add('mailpoet-intro-active');
});
intro.onexit(() => {
document.body.classList.remove('mailpoet-intro-active');
});
intro.start();