Add hover class for highlight the current menu item in dropdown menu on mouse over

This commit is contained in:
Rajnikant Lodhi 2022-08-19 17:11:26 +05:30
parent 15f8fff179
commit 1d13862880
2 changed files with 4 additions and 1 deletions

View File

@ -103,7 +103,7 @@ export class NodeWidget implements Widget {
})
.on('mouseover', function (this, n: MapNode) {
select(this).attr('class', 'over');
self.onContextMenu.emit(new NodeContextMenu(event, n));
// self.onContextMenu.emit(new NodeContextMenu(event, n));
})
.on('mouseout', function (this, n: MapNode) {

View File

@ -382,6 +382,9 @@ g.node text,
.context-menu-items .mat-menu-item:focus {
background: none;
}
.context-menu-items .mat-menu-item:hover {
background-color: rgba(160, 156, 156, 0.795) !important;
}
.visible {
display: none;