Fix node color selection on Chrome, Fixes: #181

This commit is contained in:
ziajka 2018-11-06 14:15:29 +01:00
parent 22ddb3d51e
commit b22d0dfc1d
2 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,10 @@
<svg
class="map"
preserveAspectRatio="none"
></svg>
>
<filter id="grayscale">
<feColorMatrix id="feGrayscale" type="saturate" values="0"/>
</filter>
</svg>
<app-draw-link-tool *ngIf="drawLinkTool" (linkCreated)="linkCreated($event)"></app-draw-link-tool>

Before

Width:  |  Height:  |  Size: 159 B

After

Width:  |  Height:  |  Size: 260 B

View File

@ -31,17 +31,14 @@ g.node:hover {
left: 50%;
}
/*g.node text {*/
/*font-family: Roboto !important;*/
/*}*/
svg.map image:hover, svg.map image.chosen, g.selected {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: gray;
filter: url("#grayscale"); /* Chrome doesn't support CSS filters on SVG */
}
path.selected {