Style intro.js highlight helper layer & tooltips to go nice with WP
[MAILPOET-1446]
This commit is contained in:
committed by
pavel-mailpoet
parent
5621ab22bc
commit
fe248ffde7
@@ -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();
|
||||
|
Reference in New Issue
Block a user