mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: add an hover on dark context menu buttons
Co-authored-by: David Larlet <david@larlet.fr>
This commit is contained in:
parent
4adc558560
commit
48b4d61cd0
2 changed files with 6 additions and 4 deletions
|
@ -22,3 +22,7 @@
|
||||||
margin-top: var(--text-margin);
|
margin-top: var(--text-margin);
|
||||||
margin-bottom: var(--text-margin);
|
margin-bottom: var(--text-margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark.umap-contextmenu li button .icon:hover {
|
||||||
|
background-color: var(--color-mediumGray);
|
||||||
|
}
|
||||||
|
|
|
@ -800,17 +800,15 @@ class Path extends Feature {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleEditing(event) {
|
toggleEditing() {
|
||||||
if (this._umap.editEnabled) {
|
if (this._umap.editEnabled) {
|
||||||
if (this.ui.editEnabled()) {
|
if (this.ui.editEnabled()) {
|
||||||
this.endEdit()
|
this.endEdit()
|
||||||
this._umap.editPanel.close()
|
this._umap.editPanel.close()
|
||||||
} else {
|
} else {
|
||||||
this.edit(event)
|
this.edit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// FIXME: disable when disabling global edit
|
|
||||||
// L.DomEvent.stop(event)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getShapeOptions() {
|
getShapeOptions() {
|
||||||
|
|
Loading…
Reference in a new issue