diff --git a/umap/static/umap/css/contextmenu.css b/umap/static/umap/css/contextmenu.css index 6cd9b425..27a1f0e8 100644 --- a/umap/static/umap/css/contextmenu.css +++ b/umap/static/umap/css/contextmenu.css @@ -22,3 +22,7 @@ margin-top: var(--text-margin); margin-bottom: var(--text-margin); } + +.dark.umap-contextmenu li button .icon:hover { + background-color: var(--color-mediumGray); +} diff --git a/umap/static/umap/js/modules/data/features.js b/umap/static/umap/js/modules/data/features.js index 019a95e3..84529407 100644 --- a/umap/static/umap/js/modules/data/features.js +++ b/umap/static/umap/js/modules/data/features.js @@ -800,17 +800,15 @@ class Path extends Feature { } } - toggleEditing(event) { + toggleEditing() { if (this._umap.editEnabled) { if (this.ui.editEnabled()) { this.endEdit() this._umap.editPanel.close() } else { - this.edit(event) + this.edit() } } - // FIXME: disable when disabling global edit - // L.DomEvent.stop(event) } getShapeOptions() {