Skip to content

Commit

Permalink
Merge pull request #4955 from camptocamp/GSGMF-598
Browse files Browse the repository at this point in the history
Add back legend opacity change on layer activation
  • Loading branch information
fredj authored Jun 17, 2019
2 parents 6ed81a3 + 8e311cb commit 638bdca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions contribs/gmf/src/layertree/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
color: @color;
}

.off,
.off .gmf-layertree-legend img {
.off {
opacity: 0.5;
}

Expand Down Expand Up @@ -159,6 +158,9 @@
position: relative;
border: 1px solid @main-bg-color;
background-color: lighten(@main-bg-color, 8%);
.off {
opacity: 0.5;
}
a {
display: none;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/src/layertree/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<div
ng-if="::!layertreeCtrl.isRoot && gmfLayertreeCtrl.getLegendsObject(layertreeCtrl) && layertreeCtrl.node.metadata.legend" id="gmf-layertree-node-{{::layertreeCtrl.uid}}-legend"
class="collapse gmf-layertree-legend"
ng-class="::[layertreeCtrl.node.metadata.isLegendExpanded ? 'in' : '']">
ng-class="[gmfLayertreeCtrl.getNodeState(layertreeCtrl), layertreeCtrl.node.metadata.isLegendExpanded ? 'in' : '']">

<a
title="{{'Hide legend'|translate}}"
Expand Down

0 comments on commit 638bdca

Please sign in to comment.