Skip to content

Commit e39022c

Browse files
committed
Updated default widget icon.
1 parent 7fc61e2 commit e39022c

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Gleap.preFillForm({
66
});
77

88
// Gleap.setApiUrl("http://localhost:9000");
9-
// Gleap.setFrameUrl("http://localhost:3001");
9+
//Gleap.setFrameUrl("http://localhost:3000");
1010
Gleap.initialize("MMxTvMklWdr6pgZzA3hJk9K0IvOsIT2A");
1111

1212
Gleap.attachCustomData({

src/GleapFeedbackButtonManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class GleapFeedbackButtonManager {
7878
if (flowConfig.buttonLogo) {
7979
buttonIcon = `<img class="bb-logo-logo" src="${flowConfig.buttonLogo}" alt="Feedback Button" />`;
8080
} else {
81-
buttonIcon = loadIcon("bblogo", "#fff");
81+
buttonIcon = loadIcon("button", "#fff");
8282
}
8383

8484
this.feedbackButton.className = "bb-feedback-button gleap-hidden";

src/UI.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -970,17 +970,14 @@ export const injectStyledCSS = (
970970
};
971971

972972
export const loadIcon = function (name, color) {
973-
if (name === "bblogo") {
974-
return `<svg class="bb-logo-logo bb-logo-logo--default" width="127px" height="129px" viewBox="0 0 127 129" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
975-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
976-
<g transform="translate(-11.000000, -6.000000)">
977-
<g transform="translate(11.000000, 6.000000)">
978-
<path d="M27.5507,32.306 C20.4495,41.0714 17.3437,52.8384 17.3438,64.1091 C17.3438,75.3799 20.4497,87.1469 27.5508,95.9123 C34.4039,104.372 45.6889,110.937 64.1725,110.937 C83.6599,110.937 93.3637,102.356 98.4673,94.1976 C102.058,88.4577 103.344,84.2626 103.805,81.4366 C104.114,79.5459 105.616,77.9841 107.531,77.9841 L117.938,77.9841 C119.853,77.9841 121.429,79.5376 121.265,81.4463 C120.835,86.4687 119.175,93.7981 113.171,103.396 C105.135,116.242 90.0723,128.281 64.1725,128.281 C41.0305,128.281 24.5652,119.779 14.0745,106.83 C3.83175,94.1866 -7.10542736e-15,78.2036 -7.10542736e-15,64.1092 C-7.10542736e-15,50.0147 3.83155,34.0317 14.0744,21.3884 C24.0327,9.09622 39.3744,0.811764004 60.7001,0.00243821374 C62.6145,-0.0702130963 64.1725,1.49027 64.1725,3.40601 L64.1725,13.8123 C64.1725,15.728 62.6176,17.2712 60.704,17.3608 C44.2594,18.1311 33.9643,24.3893 27.5507,32.306 Z"></path>
979-
<path d="M126.609,43.2966 C126.609,50.9596 120.397,57.1716 112.734,57.1716 C105.071,57.1716 98.8594,50.9596 98.8594,43.2966 C98.8594,35.6337 105.071,29.4216 112.734,29.4216 C120.397,29.4216 126.609,35.6337 126.609,43.2966 Z" id="Path" fill-rule="nonzero"></path>
980-
</g>
981-
</g>
973+
if (name === "button") {
974+
return `<svg class="bb-logo-logo bb-logo-logo--default" width="700px" height="700px" viewBox="0 0 700 700" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
975+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
976+
<g transform="translate(77.000000, 119.000000)" fill="#FFFFFF" fill-rule="nonzero">
977+
<path d="M476.856373,0 L68.122339,0 C30.601832,0 0,30.5935323 0,67.1461527 L0,372.655827 C0,410.166158 30.601832,439.80198 68.122339,439.80198 L170.305847,439.80198 L170.305847,528.23059 C170.305847,538.605788 182.280477,544.671288 190.657396,538.552581 L323.602398,438.844269 L476.877661,438.844269 C514.398168,438.844269 545,408.250737 545,371.698116 L545,67.1461527 C544.978712,30.5935323 515.28163,0 476.856373,0 Z"></path>
982978
</g>
983-
</svg>`;
979+
</g>
980+
</svg>`;
984981
}
985982

986983
if (name === "dismiss") {

0 commit comments

Comments
 (0)