Is there a way to override the opacity of a symbol displayed in the Legend widget without altering the layer's opacity? A partially transparent layer's symbol is darkened significantly by a dark widget background when displayed as a symbol in the Legend with our branded dark background.
Thanks!
Solved! Go to Solution.
Here is a working codepen example. I have the timeout set really high so you will need to wait around 15-30 seconds to see the opacity change on the 4th item in the legend.
https://codepen.io/mbdriscoll/pen/XWQWexm
You need to change the opacity of the class esri-legend__symbol.
Here is a working codepen example. I have the timeout set really high so you will need to wait around 15-30 seconds to see the opacity change on the 4th item in the legend.
https://codepen.io/mbdriscoll/pen/XWQWexm
Thank you for the suggestion and example!