Skip to content

Commit

Permalink
v13.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Dec 6, 2023
1 parent 1301006 commit fece2e7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
6 changes: 3 additions & 3 deletions demo/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const Gleap = window.Gleap;

/*Gleap.setFrameUrl("http://0.0.0.0:3001");
Gleap.setFrameUrl("http://0.0.0.0:3001");
Gleap.setApiUrl("http://0.0.0.0:9000");
Gleap.setWSApiUrl("ws://0.0.0.0:8080");*/
Gleap.setWSApiUrl("ws://0.0.0.0:8080");

// Gleap.setLanguage("en");

Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
Gleap.initialize("rinrKZAvjqOheSjpdUjFnp01tSOF3WTd");

/*Gleap.setUrlHandler((url, newTab) => {
alert("URL: " + url + " newTab: " + newTab);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "13.0.5",
"version": "13.0.6",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
16 changes: 12 additions & 4 deletions src/GleapProductTours.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,25 @@ export default class GleapProductTours {
driverSteps.push(driverStep);
}

var buttons = [
'next',
'close'
];

console.log("config.backButton", config);
if (config.backButton) {
buttons.push('previous');
}

const gleapTourObj = GleapTours({
showProgress: true,
steps: driverSteps,
showProgress: steps.length > 1,
allowClose: config.allowClose,
nextBtnText: config.nextText,
doneBtnText: config.doneText,
showButtons: [
'next',
'close'
],
prevBtnText: config.prevText,
showButtons: buttons,
onDestroyStarted: () => {
if (!gleapTourObj.hasNextStep()) {
gleapTourObj.destroy();
Expand Down
17 changes: 17 additions & 0 deletions src/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,12 @@ export const injectStyledCSS = (
}
}
.gleap-tour-message,
.gleap-tour-message p,
.gleap-tour-message ul {
color: ${contrastBackgroundColor};
}
.gleap-tour-message p {
line-height: 1.3;
}
Expand Down Expand Up @@ -1928,6 +1934,17 @@ export const injectStyledCSS = (
box-shadow: none !important;
outline: none !important;
}
.gleap-tour-popover-prev-btn {
color: ${contrastBackgroundColor} !important;
background-color: ${backgroundColorHover} !important;
margin-right: 3px;
}
.gleap-tour-popover-prev-btn:hover {
background-color: ${primaryColor}22 !important;
color: ${primaryColor} !important;
}
.gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {
opacity: 0.5;
Expand Down

0 comments on commit fece2e7

Please sign in to comment.