emoji: Rename `reaction_button_visible`.

This commit renames the `reaction_button_visible` class to
`active-emoji-picker-reference` to clearly document what it's for.
This commit is contained in:
Daniil Fadeev 2023-08-25 16:41:22 +03:00 committed by Tim Abbott
parent 08279820fb
commit 96d070143a
2 changed files with 5 additions and 5 deletions

View File

@ -202,8 +202,8 @@ export function hide_emoji_popover() {
// handler that opens the "user status modal" emoji picker.
$(".app, .header, .modal__overlay, #set-user-status-modal").css("pointer-events", "all");
}
$(emoji_popover_instance.reference).removeClass("reaction_button_visible");
$(emoji_popover_instance.reference).parent().removeClass("reaction_button_visible");
$(emoji_popover_instance.reference).removeClass("active-emoji-picker-reference");
$(emoji_popover_instance.reference).parent().removeClass("active-emoji-picker-reference");
emoji_popover_instance.destroy();
emoji_popover_instance = null;
}
@ -657,8 +657,8 @@ function get_default_emoji_popover_options() {
},
onShow(instance) {
const $reference = $(instance.reference);
$reference.addClass("reaction_button_visible");
$reference.parent().addClass("reaction_button_visible");
$reference.addClass("active-emoji-picker-reference");
$reference.parent().addClass("active-emoji-picker-reference");
},
onMount(instance) {
const $popover = $(instance.popper);

View File

@ -134,7 +134,7 @@
}
}
.reaction_button_visible {
.active-emoji-picker-reference {
visibility: visible !important;
pointer-events: all !important;
opacity: 1 !important;