chore: add an hover on dark context menu buttons

Co-authored-by: David Larlet <david@larlet.fr>
This commit is contained in:
Yohan Boniface 2025-02-14 17:16:35 +01:00
parent 4adc558560
commit 48b4d61cd0
2 changed files with 6 additions and 4 deletions

View file

@ -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);
}

View file

@ -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() {