Skip to content

Commit 05fd865

Browse files
authored
Merge pull request #37 from Countly/new-wrapper
New wrapper
2 parents 94bd6a8 + 33c8964 commit 05fd865

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
* Improved init time Content Zone logic
88
* Improved error handler to include script loading issues
9+
* Improved the wrapper of Feedback Widgets
910

1011
* Added `refreshContentZone` method to Content interface for refreshing Content Zone requests
1112
* Added `behavior_settings` init time method for providing server configuration during first initialization

modules/CountlyClass.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3481,7 +3481,8 @@ class CountlyClass {
34813481
}
34823482

34833483
wrapper = document.createElement("div");
3484-
wrapper.className = "countly-" + feedbackWidgetFamily + "-wrapper";
3484+
var wrapperClass = "countly-" + feedbackWidgetFamily + "-wrapper";
3485+
wrapper.className = wrapperClass + " " + wrapperClass + "--" + presentableFeedback.type;
34853486
wrapper.id = "countly-" + feedbackWidgetFamily + "-wrapper-" + presentableFeedback._id;
34863487

34873488
if (presentableFeedback.type === "survey") {

0 commit comments

Comments
 (0)