Skip to content

Commit fece2e7

Browse files
committed
v13.0.6
1 parent 1301006 commit fece2e7

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

demo/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const Gleap = window.Gleap;
22

3-
/*Gleap.setFrameUrl("http://0.0.0.0:3001");
3+
Gleap.setFrameUrl("http://0.0.0.0:3001");
44
Gleap.setApiUrl("http://0.0.0.0:9000");
5-
Gleap.setWSApiUrl("ws://0.0.0.0:8080");*/
5+
Gleap.setWSApiUrl("ws://0.0.0.0:8080");
66

77
// Gleap.setLanguage("en");
88

9-
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
9+
Gleap.initialize("rinrKZAvjqOheSjpdUjFnp01tSOF3WTd");
1010

1111
/*Gleap.setUrlHandler((url, newTab) => {
1212
alert("URL: " + url + " newTab: " + newTab);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "13.0.5",
3+
"version": "13.0.6",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

src/GleapProductTours.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,25 @@ export default class GleapProductTours {
8080
driverSteps.push(driverStep);
8181
}
8282

83+
var buttons = [
84+
'next',
85+
'close'
86+
];
87+
88+
console.log("config.backButton", config);
89+
if (config.backButton) {
90+
buttons.push('previous');
91+
}
92+
8393
const gleapTourObj = GleapTours({
8494
showProgress: true,
8595
steps: driverSteps,
8696
showProgress: steps.length > 1,
8797
allowClose: config.allowClose,
8898
nextBtnText: config.nextText,
8999
doneBtnText: config.doneText,
90-
showButtons: [
91-
'next',
92-
'close'
93-
],
100+
prevBtnText: config.prevText,
101+
showButtons: buttons,
94102
onDestroyStarted: () => {
95103
if (!gleapTourObj.hasNextStep()) {
96104
gleapTourObj.destroy();

src/UI.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,12 @@ export const injectStyledCSS = (
16071607
}
16081608
}
16091609
1610+
.gleap-tour-message,
1611+
.gleap-tour-message p,
1612+
.gleap-tour-message ul {
1613+
color: ${contrastBackgroundColor};
1614+
}
1615+
16101616
.gleap-tour-message p {
16111617
line-height: 1.3;
16121618
}
@@ -1928,6 +1934,17 @@ export const injectStyledCSS = (
19281934
box-shadow: none !important;
19291935
outline: none !important;
19301936
}
1937+
1938+
.gleap-tour-popover-prev-btn {
1939+
color: ${contrastBackgroundColor} !important;
1940+
background-color: ${backgroundColorHover} !important;
1941+
margin-right: 3px;
1942+
}
1943+
1944+
.gleap-tour-popover-prev-btn:hover {
1945+
background-color: ${primaryColor}22 !important;
1946+
color: ${primaryColor} !important;
1947+
}
19311948
19321949
.gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {
19331950
opacity: 0.5;

0 commit comments

Comments
 (0)