Skip to content

Commit e0b292d

Browse files
fix: makes to try and pass UI test
1 parent f1dd508 commit e0b292d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

plugins/star-rating/frontend/public/templates/feedback-popup.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,11 @@
3636
>
3737
</div>
3838
<div class="modal-content">
39-
<div class="modal-content__top">
40-
<div
41-
class="close-button"
42-
id="close-btn"
43-
>
44-
<i class="ion-ios-close-empty"></i>
45-
</div>
39+
<div
40+
class="close-button"
41+
id="close-btn"
42+
>
43+
<i class="ion-ios-close-empty"></i>
4644
</div>
4745
<p id="question-area">
4846
What is your opinion
@@ -482,7 +480,7 @@
482480
if (!isCloseButtonVisible) {
483481
$(CLOSE_BUTTON_ID).hide();
484482
}
485-
else {
483+
else if ($(CLOSE_BUTTON_ID).is(':hidden')) {
486484
$(CLOSE_BUTTON_ID).show();
487485
}
488486

@@ -677,7 +675,7 @@
677675
// rate for feedback
678676
$('body').on('click', '.rating-emotion', rate);
679677
// event handler for popup closer
680-
$('body').on('click', '#close-btn', closeHandler);
678+
$('body').on('click', CLOSE_BUTTON_ID, closeHandler);
681679
})();
682680
</script>
683681
<% if (themeFiles && themeFiles.js) { %>

0 commit comments

Comments
 (0)