Fix the issue of checkmark's wrong color in ctx menu disabled items on hover

This commit is contained in:
Nariman Jelveh 2024-05-30 17:09:18 -07:00
parent 16d5ac6abb
commit 7c8492ba43
2 changed files with 6 additions and 3 deletions

View File

@ -176,7 +176,7 @@ function UIContextMenu(options){
return false;
});
// This will hold the timer for the submenu delay
// This will hold the timer for the submenu delay:
// There is a delay in opening the submenu, this is to make sure that if the mouse is
// just passing over the item, the submenu doesn't open immediately.
let submenu_delay_timer;
@ -254,7 +254,7 @@ function UIContextMenu(options){
}
});
// useful in cases such as where a menu item is over a window, this prevents from the mousedown event
// Useful in cases such as where a menu item is over a window, this prevents from the mousedown event
// reaching the window underneath
$(`#context-menu-${menu_id} > li:not(.context-menu-item-disabled)`).on('mousedown', function (e) {
e.preventDefault();
@ -262,7 +262,7 @@ function UIContextMenu(options){
return false;
})
//disable parent scroll
// Disable parent scroll
if(options.parent_element){
$(options.parent_element).css('overflow', 'hidden');
$(options.parent_element).parent().addClass('children-have-open-contextmenu');

View File

@ -1616,6 +1616,9 @@ span.header-sort-icon img {
.context-menu .context-menu-item-active .context-menu-item-icon-active {
display: inline-block;
}
.context-menu .context-menu-item-active:not(.context-menu-item-disabled) .context-menu-item-icon-active {
color: white;
}