[pgAdmin4] Fix context menu CSS

Murtuza Zabuawala <[email protected]> Wed, 4 Dec 2019 14:36:33 +0530
Newsgroups gmane.comp.db.postgresql.pgadmin.devel
Message-ID <CAKKotZRr1KoWC7YCc_9F+5rWN+T0ze6wQ4eNuwMkSncSXv4unQ@mail.gmail.com>
Hi,

PFA patch to fix the issue where we have context menu open along with
submenu and the focus is not on context menu or submenu then it was picking
the CSS from jquery.contextMenu.scss and displaying different color then
the selected theme.


--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
fix_context_menu_color.diff (application/octet-stream, 748 B)
diff --git a/web/pgadmin/static/scss/_webcabin.pgadmin.scss b/web/pgadmin/static/scss/_webcabin.pgadmin.scss
index fca37c9795..7a7dd658dd 100644
--- a/web/pgadmin/static/scss/_webcabin.pgadmin.scss
+++ b/web/pgadmin/static/scss/_webcabin.pgadmin.scss
@@ -271,7 +271,7 @@
   background-color: $dropdown-bg;
 }
 
-.wcMenuItemHover, .wcMenuItem:hover, .context-menu-item:not(.context-menu-not-selectable).hover, .context-menu-item:not(.context-menu-not-selectable):hover {
+.wcMenuItemHover, .wcMenuItem:hover, .context-menu-item:not(.context-menu-not-selectable).hover, .context-menu-item:not(.context-menu-not-selectable):hover, .context-menu-hover {
   color: $dropdown-link-hover-color;
   background-color: $dropdown-link-hover-bg !important;
 }