Skip to content

Commit 7a88ad4

Browse files
Alexey PortnovAlexey Portnov
authored andcommitted
Fix: CSS leak виджета — слишком широкие селекторы в settings() красили системные элементы AmoCRM
1 parent 7318b93 commit 7a88ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

widget/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ define(function (require) {
4040
"color": "#61a0e1"
4141
};
4242
$(`.${wCode} div.widget_settings_block__title_field:not(.widget_settings_block_users__title_field)`).css(boldStyle);
43-
$(`.${wCode} strong`).css(boldStyle);
44-
$(`.${wCode} a`).css({"color": "#61a0e1"});
43+
$(`.${wCode} .widget_settings_block strong`).css(boldStyle);
44+
$(`.${wCode} .widget_settings_block a`).css({"color": "#61a0e1"});
4545
return true;
4646
},
4747
onSave: function (data) {

0 commit comments

Comments
 (0)