@product7/product7-js 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/styles/survey.js
CHANGED
|
@@ -487,6 +487,9 @@ export const surveyStyles = `
|
|
|
487
487
|
border-radius: 50%;
|
|
488
488
|
border: 1.5px solid #D1D5DB;
|
|
489
489
|
flex-shrink: 0;
|
|
490
|
+
display: flex;
|
|
491
|
+
align-items: center;
|
|
492
|
+
justify-content: center;
|
|
490
493
|
background: transparent;
|
|
491
494
|
transition: all var(--transition-fast);
|
|
492
495
|
}
|
|
@@ -512,8 +515,6 @@ export const surveyStyles = `
|
|
|
512
515
|
color: #ffffff;
|
|
513
516
|
font-size: 11px;
|
|
514
517
|
font-weight: 700;
|
|
515
|
-
line-height: 18px;
|
|
516
|
-
text-align: center;
|
|
517
518
|
border-color: var(--color-primary);
|
|
518
519
|
background-color: var(--color-primary);
|
|
519
520
|
}
|
|
@@ -1234,7 +1234,12 @@ export class SurveyWidget extends BaseWidget {
|
|
|
1234
1234
|
{};
|
|
1235
1235
|
const title = config.title || 'Thanks for your feedback!';
|
|
1236
1236
|
const buttonText = config.button_text || null;
|
|
1237
|
-
const
|
|
1237
|
+
const rawUrl = config.button_url || '';
|
|
1238
|
+
const buttonUrl = rawUrl
|
|
1239
|
+
? /^https?:\/\//i.test(rawUrl)
|
|
1240
|
+
? rawUrl
|
|
1241
|
+
: `https://${rawUrl}`
|
|
1242
|
+
: '#';
|
|
1238
1243
|
|
|
1239
1244
|
if (this._escapeHandler) {
|
|
1240
1245
|
document.removeEventListener('keydown', this._escapeHandler);
|