Fix for provinces painting patterns over color and color picker now in front of edit window

This commit is contained in:
Evolvedexperiment 2019-11-12 19:21:39 +00:00
parent 55a405c4cf
commit 9a7d5ff511
2 changed files with 2 additions and 1 deletions

View file

@ -43,6 +43,7 @@ input {
#pickerContainer {
position: absolute;
z-index: 100;
}
input, button, select, a, textarea {

View file

@ -644,7 +644,7 @@ function editProvinces() {
const provinceNew = +selected.dataset.id;
const state = pack.provinces[provinceNew].state;
const fill = pack.provinces[provinceNew].color || "#ffffff";
const stroke = d3.color(fill).darker(.2).hex();
const stroke = fill.startsWith("#") ? d3.color(fill).darker(.2).hex() : "#000000";
selection.forEach(i => {
if (!pack.cells.state[i] || pack.cells.state[i] !== state) return;